evanw / node-source-map-support

Adds source map support to node.js (for stack traces)
MIT License
2.16k stars 223 forks source link

Fix WebPack compatibility by using dynamic require #271

Closed LinusU closed 4 years ago

LinusU commented 4 years ago

Fixes #270

We might want to use this for fs as well 🤔

thib3113 commented 4 years ago

I've try on my app (react / webpack) : With 0.5.17

./node_modules/source-map-support/source-map-support.js
Module not found: Can't resolve 'worker_threads' in 'C:\Users\thib3113\repos\project\node_modules\source-map-support'

And with this PR, no warning that seems good :) . Waiting for this to be merge :) .

LinusU commented 4 years ago

@thib3113 perfect, thanks for testing!

LinusU commented 4 years ago

Released as 0.5.18