Skip to content
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(build): Apply bundle fix to legacy build #6303

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Aug 23, 2018

Summary

The Webpack config for the modern build was adjusted recently to add a loader,
which is used as a workaround for a bug introduced by a recent dependency
update
. The legacy config needed the same update.

The Webpack config was also updated in superficial ways to follow
recommendations made for migrating from Webpack v1 to v2 (e.g. using
module.rules instead of module.loaders). These changes should have no
functional impact, and should make migrating to future versions of Webpack
easier.

fix #6269

Test plan

I have tested building and running both the modern and legacy builds. Before this change, the artifact from the modern build worked, but the one from the legacy build did not. Now they both work.

I also compared the stdout from running the build-bundle command, before and after this change (it prints the list of files included in the bundle). The output matched exactly.

@buildsize
Copy link

buildsize bot commented Aug 23, 2018

File name Previous Size New Size Change
yarn-[version].noarch.rpm 1.01 MB 1.05 MB 39.41 KB (4%)
yarn-[version].js 4.12 MB 4.12 MB -439 bytes (0%)
yarn-legacy-[version].js 4.05 MB 4.28 MB 235.85 KB (6%)
yarn-v[version].tar.gz 1.02 MB 1.06 MB 41.21 KB (4%)
yarn_[version]all.deb 746.24 KB 777.19 KB 30.95 KB (4%)

The Webpack config for the modern build was adjusted recently to add a loader,
which is used as a workaround for a bug introduced by a recent dependency
update. The legacy config needed the same update.

The Webpack config was also updated in superficial ways to follow
recommendations made for migrating from Webpack v1 to v2 (e.g. using
`module.rules` instead of `module.loaders`). These changes should have no
functional impact, and should make migrating to future versions of Webpack
easier.

fix yarnpkg#6269
@arcanis
Copy link
Member

arcanis commented Aug 28, 2018

👍

@arcanis arcanis merged commit 2f89339 into yarnpkg:master Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error An unexpected error occurred: "Cannot find module \"./rx.lite\"".
2 participants