Skip to content

Commit 0617f50

Browse files
committed
add automatic es5-shim loader
1 parent 33a998d commit 0617f50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/webpack.client.rails.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ config.entry.app.push('./app/startup/clientGlobals');
2424
// See webpack.common.config for adding modules common to both the webpack dev server and rails
2525

2626
config.module.loaders.push(
27-
{test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/}
27+
{test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/},
28+
{test: require.resolve("react"), loader: "imports?shim=es5-shim/es5-shim&sham=es5-shim/es5-sham"}
2829
);
2930

3031
module.exports = config;

0 commit comments

Comments
 (0)