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

Fixes the bundle build #6274

Merged
merged 1 commit into from
Aug 17, 2018
Merged

Fixes the bundle build #6274

merged 1 commit into from
Aug 17, 2018

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Aug 16, 2018

Summary

#6208 caused some rx packages to be upgraded, which in turn broke the bundling process (the new release doesn't play well with webpack because of its amd definition). This diff updates the configuration to hack around this issue.

Test plan

yarn && yarn build-bundle && ./artifacts/yarn-1.10.0-0.js --version

@buildsize
Copy link

buildsize bot commented Aug 16, 2018

File name Previous Size New Size Change
yarn-[version].noarch.rpm 1.01 MB 1.01 MB -25 bytes (0%)
yarn-[version].js 3.89 MB 4.12 MB 236.38 KB (6%)
yarn-legacy-[version].js 4.05 MB 4.05 MB 91 bytes (0%)
yarn-v[version].tar.gz 1.02 MB 1.02 MB 422 bytes (0%)
yarn_[version]all.deb 746.19 KB 746.62 KB 436 bytes (0%)

yarn.lock Outdated
@@ -5,14 +5,12 @@
"@babel/code-frame@^7.0.0-beta.35":
version "7.0.0-beta.55"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.55.tgz#71f530e7b010af5eb7a7df7752f78921dd57e9ee"
integrity sha1-cfUw57AQr163p993UveJId1X6e4=
Copy link
Member

Choose a reason for hiding this comment

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

Was this intended? It looks like all of the integrity hashes have been removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, not intended, my machine wasn't using the nightly yet 😞

@arcanis arcanis merged commit a49644b into yarnpkg:master Aug 17, 2018
@jacobq
Copy link

jacobq commented Aug 17, 2018

FWIW, I tried installing the .deb from this CircleCI build, but I still see the error regarding rx.lite (#6269). Shouldn't that have worked?

@@ -34,6 +34,10 @@ const compiler = webpack({
exclude: /node_modules/,
loader: 'babel-loader',
},
{
test: /rx\.lite\.aggregates\.js/,
use: 'imports-loader?define=>false'
Copy link
Member

@Gudahtt Gudahtt Aug 22, 2018

Choose a reason for hiding this comment

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

Is it valid to have a use entry here? It seems to work for me too, but... module.loaders is apparently an alias for module.use. module.use entries must have a loader field (as the babel-loader entry above does). The syntax you're using here is assumed to be in a module.rules entry, which is how Webpack wants us to configure loaders since v2. Yet this seems to work anyway...

We should probably update webpack :/ It's difficult to even find documentation for this version.

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

I believe the reason the nightly builds are still failing is that the change made to the Modern build was not made to the legacy build below. Presumably it should be fixed in both places.

@moertchen
Copy link

moertchen commented Aug 22, 2018

I have installed the .deb from this CircleCI build too, but I still get the same error:

[1/4] Resolving packages...
error An unexpected error occurred: "Cannot find module "./rx.lite"".

I will be happy if any one could describe a workaround! Thank you.

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.

4 participants