Skip to content

Commit

Permalink
add babel polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
moklick committed Feb 13, 2016
1 parent 0f64591 commit 0cf7bc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"semi": 2
"semi": 2
}
},
"homepage": "https://github.com/wbkd/yet-another-webpack-es6-starterkit#readme",
Expand All @@ -51,5 +51,8 @@
"style-loader": "^0.13.0",
"webpack": "^1.12.13",
"webpack-dev-server": "^1.14.1"
},
"dependencies": {
"babel-polyfill": "^6.5.0"
}
}
4 changes: 3 additions & 1 deletion src/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ if (module.hot) {
module.hot.accept();
}

require('../styles/index.scss');
import 'babel-polyfill';
import '../styles/index.scss';


const number = 123;
const output = `A number: ${number}`;

0 comments on commit 0cf7bc3

Please sign in to comment.