-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix publishing of webpack bundles and docs #17246
Fix publishing of webpack bundles and docs #17246
Conversation
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.
Awesome work, thank you!
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4940882:
|
f97b9b6
to
eb9069c
Compare
eb9069c
to
96965be
Compare
c5a976d
to
1362a8e
Compare
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
🎉 Handy links: |
#### Pull request checklist - [x] Addresses an existing issue: Fixes microsoft#17208, fixes microsoft#17213 #### Description of changes The webpack 5 change microsoft#16447 broke bundles in production builds because the webpack CLI arg for turning on production mode has changed from `--production` to `--mode=production`. This was causing a build error, but it didn't cause the release build to fail because `scripts/runPublished.js` wasn't appropriately handling the exit code. This PR fixes both issues, and switches the publish build/bundle to run using lage rather than lerna for consistency.
Pull request checklist
Description of changes
The webpack 5 change #16447 broke bundles in production builds because the webpack CLI arg for turning on production mode has changed from
--production
to--mode=production
. This was causing a build error, but it didn't cause the release build to fail becausescripts/runPublished.js
wasn't appropriately handling the exit code.This PR fixes both issues, and switches the publish build/bundle to run using lage rather than lerna for consistency.