question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mischniccommented, Dec 11, 2018

Parcel doesn’t generate sourcemaps with --experimental-scope-hoisting (see #1564). I’m guessing it has something to do with typescript.

0reactions
mischniccommented, Jun 2, 2019

Closing because of inactivity.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found