We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.map
--no-source-maps
Parcel 2 (latest nightly) generates a .map file with --no-source-maps.
To reproduce:
$ yarn parcel --version 2.0.0-nightly.180+a1a2515f $ cat a.js console.log(1 + 2); $ rm -rf dist && yarn parcel build a.js && cat dist/a.js.map dist/a.js 46 B 10ms └── a.js 20 B 655ms {"mappings":"AAAAA,QAAQC,IAAI","sources":["a.js"],"names":["console","log"],"version":3,"file":"a.js.map","sourcesContent":["console.log(1 + 2);\n"]} $ rm -rf dist && y parcel build --no-source-maps a.js && cat dist/a.js.map dist/a.js 46 B 2ms └── a.js 20 B 655ms {"mappings":"AACAA,QAAQC,IAAI","sources":["0"],"names":["console","log"],"version":3,"file":"a.js.map","sourcesContent":[null]}
With --no-source-maps, dist/a.js.map is still generated (it doesn't have sourcesContent though).
dist/a.js.map
sourcesContent
.map file should not be generated.
.map file is generated.
The text was updated successfully, but these errors were encountered:
Will look into this and create a fix later today
Sorry, something went wrong.
@DeMoorJasper thanks, the new nightly works!
Hmm.. [email protected] - ok with parcel build. But still generates a 1kb js.map with parcel watch
parcel build
parcel watch
--source-maps
Successfully merging a pull request may close this issue.
🐛 bug report
Parcel 2 (latest nightly) generates a
.map
file with--no-source-maps
.To reproduce:
With
--no-source-maps
,dist/a.js.map
is still generated (it doesn't havesourcesContent
though).🤔 Expected Behavior
.map
file should not be generated.😯 Current Behavior
.map
file is generated.🌍 Your Environment
The text was updated successfully, but these errors were encountered: