Skip to content

Commit

Permalink
Merge pull request #131 from shakacode/justin808-remove-es5shim-appli…
Browse files Browse the repository at this point in the history
…cationjs

Drop es5-shim from application.js since it's already being loaded in Webpack
  • Loading branch information
robwise committed Oct 29, 2015
2 parents 9a4e771 + 48218b3 commit 98894c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.

// Need to be on top to allow Poltergeist test to work with React.
//= require es5-shim/es5-shim
// Need to be on top to allow Poltergeist test to work with React: es5-shim/es5-shim. This is lincluded in app-bundle.
//= require react_on_rails

// It is important that generated/vendor-bundle must be before bootstrap since it is exposing jQuery and jQuery-ujs
Expand Down
3 changes: 2 additions & 1 deletion client/webpack.client.rails.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ config.entry.app.push('./app/startup/clientGlobals');
// See webpack.common.config for adding modules common to both the webpack dev server and rails

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

module.exports = config;
Expand Down

0 comments on commit 98894c7

Please sign in to comment.