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
When I use webpack to bundle commonjs modules, the source mapping directive from performance-now.js is brought in and interferes with the browser's ability to pick up the source map for the bundle.
This is a transient dependency for my module, so I am not able to use a coffeescript loader to bring in performance-now.coffee directly. Is the source map useful other than during development? If not, the directive would ideally not appear in the published javascript.
This is what I end up with in my bundle:
...
/* //@ sourceMappingURL=performance-now.map *//* WEBPACK VAR INJECTION */}.call(exports,__webpack_require__(19)))/***/}/******/])/*//@ sourceMappingURL=bundle.js.map*/
The text was updated successfully, but these errors were encountered:
@davidmason I'm closing this. IMO bundlers should be able to handle source map comments, and as I understand it, there's now a way to make it work in webpack.
When I use webpack to bundle commonjs modules, the source mapping directive from
performance-now.js
is brought in and interferes with the browser's ability to pick up the source map for the bundle.This is a transient dependency for my module, so I am not able to use a coffeescript loader to bring in
performance-now.coffee
directly. Is the source map useful other than during development? If not, the directive would ideally not appear in the published javascript.This is what I end up with in my bundle:
The text was updated successfully, but these errors were encountered: