Distributed dash.all.min.js file includes source maps, which causes console warnings
Created by: cnorthwood
Steps to reproduce
- Using a Browserify/Babelify project, add
dashjs
as a dependency and then somewhere doimport dashjs from 'dashjs'
. - Open the console log in Chrome
Observed behaviour
A large amount of "DevTools failed to parse SourceMap" appears in the console.
Expected behaviour
No source maps errors appear. The issue I think comes because the sourcemaps seem to have hard-coded paths to files e.g., /Users/dsparaci/Development/projects/dash-client-dev/dash.js/externals/objectiron.js
which presumably only exist on the build server.
Ideally, the .min.js
shouldn't contain sourcemaps at all (to reduce the size), only the .debug.js
, in addition to the hardcoded file paths.