Skip to content

Commit 68af0af

Browse files
authored
Merge pull request scratchfoundation#4355 from paulkaplan/fix-loading-vernier
Build vernier module using babel preset to make sure it works for www
2 parents 3fe7502 + 8e69310 commit 68af0af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ const base = {
3535
rules: [{
3636
test: /\.jsx?$/,
3737
loader: 'babel-loader',
38-
include: [path.resolve(__dirname, 'src'), /node_modules[\\/]scratch-[^\\/]+[\\/]src/],
38+
include: [
39+
path.resolve(__dirname, 'src'),
40+
/node_modules[\\/]scratch-[^\\/]+[\\/]src/,
41+
/node_modules[\\/]@vernier[\\/]dist // Vernier build needs to be transpiled for es5
42+
],
3943
options: {
4044
// Explicitly disable babelrc so we don't catch various config
4145
// in much lower dependencies.

0 commit comments

Comments
 (0)