--no-source-maps flag appears to be ignored during build. This just started happening recently, so I'm assuming it started in either 1.10.0 or 1.10.1.
CLI via npm script:
"build": "parcel build src/index.html -d dist --no-source-maps",
No source maps.
Source maps.
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.10.1
| Node | 10.10.0
| npm/Yarn | npm 6.3.0
| Operating System | Windows 10
Also experiencing this issue.
It's notable that the source map gets created but not linked from the JS file.
Im also experiencing this 1.10.1.
Somehow this issue just disappeared yesterday, not sure why.
It seems this issue happens in >=1.10.0
Fixed by #2089 ?
I'm still seeing this behavior on 1.11.0
I am still seeing this issue on parcel-bundler 1.11.0.
rm -r dist/ and build with --no-source-maps, then I still get source maps in dist/rm -r .cache/ dist/ to remove both the cache and dist and build again with --no-source-maps, then I get it without source maps./node_modules/.bin/parcel --version
1.11.0
You must remove the .cache directory to make the flags work as expected. The flag policy seems to be flag-first.
Opened a new issue to track this further as we have a more specific view on why this is happening now.
Further discussion should be moved here: #2692
Thanks for the detailed reproduction steps @mrcoles
Most helpful comment
Fixed by #2089 ?