You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#27 is about how default settings for source maps override any user settings. The person creating the other ticket considered it a bug, but someone stated that sourceMaps should always override user settings anyhow. I think that's bad, but understand that changes elsewhere in code is also needed.
The create-react-app link is about why people would want to turn off source maps
@staeke You're always welcome to submit a PR that'll add a flag to disable this behavior.
My question is because it sounds like this is a feature request, but there hasn't been anyone with an issue that warrants this feature. But again, if you'd like to add it, I won't block on that.
Looking forward to this feature. When running ts-node inside electron, source-map-support blows up every time any module attempts to read the stack of an exception, with the following message:
Uncaught RangeError: WebAssembly.Compile is disallowed on the main thread, if the buffer size is larger than 4KB. Use WebAssembly.compile, or compile on a worker thread.
I recommend checking out #1533 and submitting a pull request. It should solve your problem. #1533 has a low level of effort required for implementation, and I'm happy to answer any questions in the comments for #1533.
I dropped the require that you pointed out in #1533 altogether, and that fixes the issue.
I suspect the right solution in my case would be to fix the interoperability between source-map-support and electron in the source-map-support module instead, but as a quick workaround, patching ts-node did the trick.
Activity
blakeembrey commentedon Mar 6, 2019
What's the use case or issue here? You linked to unrelated things.
staeke commentedon Mar 6, 2019
@blakeembrey they're related....let me clarify:
#27 is about how default settings for source maps override any user settings. The person creating the other ticket considered it a bug, but someone stated that sourceMaps should always override user settings anyhow. I think that's bad, but understand that changes elsewhere in code is also needed.
The create-react-app link is about why people would want to turn off source maps
blakeembrey commentedon Mar 6, 2019
@staeke You're always welcome to submit a PR that'll add a flag to disable this behavior.
My question is because it sounds like this is a feature request, but there hasn't been anyone with an issue that warrants this feature. But again, if you'd like to add it, I won't block on that.
rubenlg commentedon Dec 12, 2021
Looking forward to this feature. When running ts-node inside electron,
source-map-supportblows up every time any module attempts to read the stack of an exception, with the following message:cspotcode commentedon Dec 13, 2021
I recommend checking out #1533 and submitting a pull request. It should solve your problem. #1533 has a low level of effort required for implementation, and I'm happy to answer any questions in the comments for #1533.
rubenlg commentedon Dec 13, 2021
I dropped the require that you pointed out in #1533 altogether, and that fixes the issue.
I suspect the right solution in my case would be to fix the interoperability between
source-map-supportand electron in thesource-map-supportmodule instead, but as a quick workaround, patching ts-node did the trick.