I've been trying to get an output from Parcel for quite a while with no luck. Initially, I had a "main" element at the top of package.json. I read that this is not recommended, so in my "targets" I included "main":false. I initially had "distDir": "dist", and when doing "npm run build" it didn't create it, I changed it to "./build_output"; same result. But it Does produce the .parcel-cache folder. I have disabled firewall and antivirus, thinking maybe file creation is getting squashed; no difference. Here is my package.json:
"name": "rapier_dist",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "parcel src/main.js --port 1234 --target browser --log-level verbose",
"build": "parcel build src/main.js --public-url ./ --target browser --log-level verbose",
"preview": "parcel src/main.js --port 1234"
},
"targets": {
"main": false,
"browser": {
"source": "src/main.js",
"distDir": "./build_output"
}
},
"devDependencies": {
"parcel": "2.13.3"
},
"dependencies": {
"@dimforge/rapier2d": "0.17.0",
"rapier_dist": "file:.."
}
}```
I'm not very familiar with "bundling" or wasm; just trying to get a rapier2d build that I can import into my javascript code. Any advice is appreciated!