Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.77k stars 150 forks source link

Problem requiring files that already have inline source maps #56

Open nathansobo opened 8 years ago

nathansobo commented 8 years ago

I'm attempting to use devtool for a project that registers custom require handlers for Babel and CoffeeScript. These handlers inject inline source maps automatically, but these maps are being discarded by the Module.wrap override built into devtool.

I'll open a PR that skips source mapping when no --break or --no-browser-globals flags are specified, but correctly extending the source maps will take more time than I have right now.

mattdesl commented 8 years ago

Can you please test with latest version, 1.10.0. I've added better handling of source maps and also an option to disable generation altogether (--no-source-maps).

To update:

npm i devtool -g