babel & karma & webpack not working -
i'm using babel webpack, , test karma , jasmine. in order use set()
(requires polyfill), i've added :
loader: 'babel-loader?optional[]=runtime'
to configuration.
this work's application itself, tests not working, throwing:
typeerror: 'undefined' not object (evaluating '_core.object')
ok, solved myself:
remove
?optional[]=runtime'
add config :
`
files: [ 'node_modules/babel-core/browser-polyfill.js', ... (rest of needed files) ],
Comments
Post a Comment