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:

  1. remove ?optional[]=runtime'

  2. add config :

`

files: [             'node_modules/babel-core/browser-polyfill.js',       ... (rest of needed files)      ], 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -