Experimental Scope Hoisting and No Source Maps outputs Source Map
See original GitHub issue🐛 bug report
The exact cli command I’m running parcel build src/app/index.tsx --no-source-maps --experimental-scope-hoisting
It is still outputting source maps
🎛 Configuration (.babelrc, package.json, cli command)
I’m using typescript, react, and sass.
{
"compilerOptions": {
"target": "es6",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"moduleResolution": "node",
"jsx": "react",
"sourceMap": false
},
"exclude": [
"node_modules",
"dist"
]
}
🤔 Expected Behavior
No source maps to be generated
😯 Current Behavior
The exact cli command I’m running parcel build src/app/index.tsx --no-source-maps --experimental-scope-hoisting
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 1.10.1 |
Node | 8.12.0 |
npm/Yarn | yarn 1.9.4 |
Operating System | MacOs v 10.14.1 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
V2: inline source maps are malformed · Issue #5815 - GitHub
bug report When inspecting TS files generated with inline source maps in chrome debugger - the mapping turns out to be absolutely wrong....
Read more >Scope hoisting - Parcel
In production builds, Parcel concatenates modules into a single scope. This is called "scope hoisting". Parcel also statically analyzes the imports and ...
Read more >Source Maps - Rollbar Docs
If you generated your source maps without sources, then you need to make sure to follow the 'Uploading a source map with sources...
Read more >rollup.js
If the transformation does not move code, you can preserve existing sourcemaps by setting map to null . Otherwise you might need to...
Read more >Configuring Vite
For SSR builds, deduplication does not work for ESM build outputs ... Experimental. Type: boolean. Default: false. Whether to enable sourcemaps during dev....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Parcel doesn’t generate sourcemaps with
--experimental-scope-hoisting
(see #1564). I’m guessing it has something to do with typescript.Closing because of inactivity.