Skip to content

Commit

Permalink
Vuex를 위한 babel-polyfill 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangJoo Park committed Mar 8, 2017
1 parent 3d9df5c commit 55f07e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"babel-loader": "^6.2.10",
"babel-plugin-istanbul": "^3.1.2",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0",
Expand Down
6 changes: 5 additions & 1 deletion test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// https://github.com/webpack/karma-webpack

var webpackConfig = require('../../build/webpack.test.conf')
var babelPolyfill = require('../../node_modules/babel-polyfill/dist/polyfill.js')

module.exports = function (config) {
config.set({
Expand All @@ -14,7 +15,10 @@ module.exports = function (config) {
browsers: ['PhantomJS'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['spec', 'coverage'],
files: ['./index.js'],
files: [
'../../node_modules/babel-polyfill/dist/polyfill.js',
'./index.js'
],
preprocessors: {
'./index.js': ['webpack', 'sourcemap']
},
Expand Down

0 comments on commit 55f07e3

Please sign in to comment.