Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Overlapping content in sourcemaps when using builder arithmetic. #843

Open
CxRes opened this issue Mar 13, 2018 · 1 comment
Open

Overlapping content in sourcemaps when using builder arithmetic. #843

CxRes opened this issue Mar 13, 2018 · 1 comment

Comments

@CxRes
Copy link
Contributor

CxRes commented Mar 13, 2018

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
Copy link
Member

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

PRs welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants