Use babel polyfill in karma
This commit is contained in:
parent
e4a34cc4d4
commit
1341a7bb9c
4 changed files with 20 additions and 3 deletions
|
@ -56,7 +56,10 @@ module.exports = function (config) {
|
|||
browsers: ['PhantomJS'],
|
||||
frameworks: ['mocha', 'sinon-chai'],
|
||||
reporters: ['mocha'],
|
||||
files: ['./index.js'],
|
||||
files: [
|
||||
'../../node_modules/@babel/polyfill/dist/polyfill.js',
|
||||
'./index.js'
|
||||
],
|
||||
preprocessors: {
|
||||
'./index.js': ['webpack', 'sourcemap']
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue