babel/minify

--input-source-map not respected

Aperta

#561 aperta il 1 giu 2017

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (223 fork)batch import
help wanted

Metriche repository

Star
 (4377 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Situation: I produce a bundle with another tool that has a source map to the original files. I'd like to minify this bundle with babili.

I've run this command (and variations with --inputSourceMap etc) babili --source-maps --input-source-map=./dist/bundle.js.map -o ./dist/bundle.min.js ./dist/bundle.js

Expected: ./dist/bundle.min.js.map maps lines to the original files Actual: ./dist/bundle.min.js.map maps lines to ./dist/bundle.js

Guida contributor