Skip to content

Commit 5b81d6f

Browse files
authored
Don't transform codecombat dynamicRequire.js (#126)
Currently Babel crashes when trying to compile it, but really we don't want it attempting to compile the dynamic `import` at all, since the intention is for webpack to handle it.
1 parent 4005b4c commit 5b81d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/codecombat/decaffeinate.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ index 192f8de..c345e98 100644
123123
{ test: /\.coffee$/, use: [
124124
{ loader: 'coffee-loader' },
125125
] },
126-
+ { test: /\.js$/, exclude: /node_modules/, use: [
126+
+ { test: /\.js$/, exclude: /node_modules|dynamicRequire\.js/, use: [
127127
+ { loader: 'babel-loader' },
128128
+ ] },
129129
{ test: /\.jade$/, use: { loader: 'jade-loader', options: { root: path.resolve('./app') } } },

0 commit comments

Comments
 (0)