Skip to content

Commit

Permalink
Add 'babel-polyfill' to have polyfills for IE11 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstrelow authored and rs22 committed Feb 15, 2018
1 parent c5e774b commit 17b10d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = ['en', 'de'].map(lang => ({
devtool: 'eval-source-map',
entry: {
main: [
'babel-polyfill',
'react-hot-loader/patch',
'webpack-hot-middleware/client?reload=true',
path.join(__dirname, `src/js/main.${lang}.js`)
Expand Down
5 changes: 4 additions & 1 deletion frontend/app/webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = ['en', 'de'].map(lang => ({
...commonConfig[lang],
name: lang,
entry: {
main: path.join(__dirname, `src/js/main.${lang}.js`)
main: [
'babel-polyfill',
path.join(__dirname, `src/js/main.${lang}.js`)
]
},
output: {
path: path.join(__dirname, '/dist/'),
Expand Down

0 comments on commit 17b10d8

Please sign in to comment.