Skip to content

Conversation

@mzgoddard
Copy link
Contributor

Proposed Changes

  • Build scratch-* dependencies with babel-loader
  • Disable babelrc use by babel-loader so lower dependencies use the stated webpack babel configuration

Reason for Changes

Sibling of scratchfoundation/scratch-vm#1106

test: /\.jsx?$/,
loader: 'babel-loader',
include: path.resolve(__dirname, 'src')
include: [path.resolve(__dirname, 'src'), /node_modules[\\\/]scratch-[^\\\/]+[\\\/]src/],

This comment was marked as abuse.

This comment was marked as abuse.

@mzgoddard mzgoddard force-pushed the dependents-no-boiler branch from bc04354 to 7b98080 Compare May 10, 2018 17:42
@thisandagain thisandagain added this to the May 2018 milestone May 10, 2018
rschamp
rschamp previously approved these changes May 10, 2018
Copy link
Contributor

@rschamp rschamp 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 with the resolve.symlinks: false change I made these are all good to go! I will do that tomorrow.

@rschamp
Copy link
Contributor

rschamp commented May 11, 2018

We ran into an issue with using this setup with npm > 4. When packages are linked (as they are frequently when working on 3.0), running npm install overwrites the symlink. This makes it impossible to add dependencies to linked repos that are built into gui at gui build-time. So I am blocking this pending writing up what we should do about that issue (yarn?).

Configure loaders so they operate on individual modules in scratch-*
dependencies.
rschamp
rschamp previously approved these changes May 29, 2018
@rschamp rschamp merged commit 31f9b48 into scratchfoundation:develop May 31, 2018
adroitwhiz added a commit to adroitwhiz/scratch-gui that referenced this pull request Jul 8, 2019
adroitwhiz added a commit to adroitwhiz/scratch-gui that referenced this pull request Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants