Skip to content

Fixes the bundle build#6274

Merged
arcanis merged 1 commit into
yarnpkg:masterfrom
arcanis:fix-build
Aug 17, 2018
Merged

Fixes the bundle build#6274
arcanis merged 1 commit into
yarnpkg:masterfrom
arcanis:fix-build

Conversation

@arcanis

@arcanis arcanis commented Aug 16, 2018

Copy link
Copy Markdown
Member

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

buildsize Bot commented Aug 16, 2018

Copy link
Copy Markdown
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%)

Comment thread yarn.lock
@@ -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
Copy Markdown
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
Copy Markdown
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

jacobq commented Aug 17, 2018

Copy link
Copy Markdown

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?

Comment thread scripts/build-webpack.js
},
{
test: /rx\.lite\.aggregates\.js/,
use: 'imports-loader?define=>false'

@Gudahtt Gudahtt Aug 22, 2018

Copy link
Copy Markdown
Member

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.

@Gudahtt Gudahtt left a comment

Copy link
Copy Markdown
Member

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

moertchen commented Aug 22, 2018

Copy link
Copy Markdown

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