Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

fix: don't handle invalid source map #268

Merged
merged 1 commit into from Apr 12, 2018

Conversation

alexander-akait
Copy link
Member

fixes #261

Also refactor tests

@joshwiens
Copy link
Member

Please rebase with current master

@joshwiens joshwiens force-pushed the fix-invalid-source-map-property branch from f9d8901 to cede5dc Compare April 2, 2018 14:44
@alexander-akait alexander-akait force-pushed the fix-invalid-source-map-property branch from cede5dc to d26c2ad Compare April 2, 2018 15:59
@alexander-akait
Copy link
Member Author

@d3viant0ne done, something wrong with ci on node6 😕

@joshwiens joshwiens self-assigned this Apr 3, 2018
inputSourceMap = map;
sourceMap = null;

compilation.warnings.push(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throw warning on invalid source map. Is it very DX.

@@ -78,7 +78,7 @@ describe('when options.parallel', () => {
beforeEach(() => {
chunkPluginEnvironment = new PluginEnvironment();
compilation = chunkPluginEnvironment.getEnvironmentStub();
compilation.assets = assets;
compilation.assets = Object.assign({}, assets);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compilation mondify assets, we should clone assets

Copy link
Member

@sokra sokra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexander-akait alexander-akait merged commit 693e45e into master Apr 12, 2018
@alexander-akait alexander-akait deleted the fix-invalid-source-map-property branch April 12, 2018 14:03
whtsky pushed a commit to whtsky/uglifyjs-3-webpack-plugin that referenced this pull request Apr 16, 2018
whtsky pushed a commit to whtsky/uglifyjs-3-webpack-plugin that referenced this pull request Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Couldn't parse bundle asset "vendors~typeahead.chunk.min.js". Analyzer will use module sizes from stats file.
3 participants