systemjs / builder

SystemJS build tool
MIT License
466 stars 122 forks source link

Overlapping content in sourcemaps when using builder arithmetic. #843

Open CxRes opened 6 years ago

CxRes commented 6 years ago

SJS-Builder 0.15.36

Do something like this:

builder.bundle('app/**/* - [app/**/*]', 'dependencies.min.js', { minify: true, sourceMaps: true });
builder.bundle('app/bootstrap - dependencies.min.js', 'app.min.js', { minify: true, sourceMaps: true });

Both source maps (dependencies.min.js.map and app.min.js.map) generated are ballpark the same size as the one that would have been generated had I not separated the deps. Upon a casual inspection, you can see a reference to all dependency files in app.min.js.map as well.

guybedford commented 6 years ago

Thanks for posting, that does sound like it could be a bug.

PRs welcome.