Skip to content

Fix Vue asset supplemental code concatenation#1362

Merged
devongovett merged 2 commits into
parcel-bundler:masterfrom
SteffenL:fix-upstream-issue-1350
May 22, 2018
Merged

Fix Vue asset supplemental code concatenation#1362
devongovett merged 2 commits into
parcel-bundler:masterfrom
SteffenL:fix-upstream-issue-1350

Conversation

@SteffenL

Copy link
Copy Markdown
Contributor

This PR is intended to fix #1350 and probably also #1344.

Without this fix, the user's code is minified just fine; however, supplemental code is minified separately, then appended to the user's code in the same scope. This can cause a symbol naming clash which breaks the user's code.

@SteffenL

Copy link
Copy Markdown
Contributor Author

@DeMoorJasper This fixes my TypeError problem without using the .uglifyrc file.

@TooBug Would you be interested in testing this?

@DeMoorJasper

DeMoorJasper commented May 13, 2018

Copy link
Copy Markdown
Member

@SteffenL awesome!

Sent with GitHawk

@SteffenL

Copy link
Copy Markdown
Contributor Author

This PR may also fix #1294.

@carbontwelve @luikore It would be very helpful if you could test this.

@TooBug

TooBug commented May 14, 2018

Copy link
Copy Markdown

@SteffenL I've tested with this PR, it solved my problem in #1344

@carbontwelve

Copy link
Copy Markdown

Im going to test this today and will report back.

@carbontwelve

Copy link
Copy Markdown

Tested with relation to #1294 and it still returns a broken build.

@SteffenL

Copy link
Copy Markdown
Contributor Author

@carbontwelve Okay, thanks.

The user code may have comments at the end, which could cause the first line of the supplemental code to be commented out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vue SFC: Incorrect minified JS

5 participants