-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use pre-minified Vue version #12307
Don't use pre-minified Vue version #12307
Conversation
That makes source maps unreadable (function names are already minified). Signed-off-by: Silvio Moioli <[email protected]>
@rak-phillip to look at this and see what needs to be ported over to 2.10.x |
@rak-phillip / @gaktive I'm in discussions with Silvio about this in slack. Generally looking good for 2.9 but investigating further. ATM not sure any change is needed for 2.10 as it avoids the min version (and just uses |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be any concern for 2.10 at this point; we're not using minified builds for Vue in master
.
For posterity, vue-cli-service build
1 is what handles minification in our production bundles.
Footnotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just putting a blocker on this until we can test chunk size and functionality further.
I've also put it in to 2.9.5 to hopefully move into 2.9.4 if there's time
@richard-cox about chunk size: in my 2.9.1 setup |
Please let me know if anything more is need from my part. Thanks for the reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- Validated start:prod with some BVTs
- asset size looks reasonable, checked content of old vendor chunk against new (minor minification changes
- stack traces for vue things are now useful
Just need tests to pass (i gave a bump)... and also release-2.9
branch to track 2.9.5
Edit: More info on vue builds https://v2.vuejs.org/v2/guide/installation#Explanation-of-Different-Builds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to approved. As per other PRs still blocked on release of 2.9.4 (but once that's released this can be merged)
Summary
Fixes #12513
This changes the way scripts are minified and source maps are computed. Instead of using a pre-minified Vue version, use the full version and minify it using the existing minifier.
That moves minification after source map creation, restoring expected resource map functionality.
Occurred changes and/or fixed issues
File size change is modest, and occurs basically only in source maps which are not loaded by most users. Runtime is also shorter in my setup. All tests were run on 2.9.1.
Technical notes summary
Should be completely transparent to non-developer users.
I hope this works.
Areas or cases that should be tested
Regular test of a new Rancher version should be more than sufficient to catch any regressions, which by the way are not expected as the change uses a value that was already in place for development builds.
Checklist