File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ debug('Create configuration.')
9
9
const karmaConfig = {
10
10
basePath : '../' , // project root in relation to bin/karma.js
11
11
files : [
12
- './node_modules/phantomjs-polyfill/bind-polyfill.js' ,
13
12
{
14
13
pattern : `./${ config . dir_test } /test-bundler.js` ,
15
14
watched : false ,
Original file line number Diff line number Diff line change @@ -23,12 +23,15 @@ const webpackConfig = {
23
23
// ------------------------------------
24
24
// Entry Points
25
25
// ------------------------------------
26
- const APP_ENTRY_PATH = paths . client ( 'main.js' )
26
+ const APP_ENTRY_PATHS = [
27
+ 'babel-polyfill' ,
28
+ paths . client ( 'main.js' )
29
+ ]
27
30
28
31
webpackConfig . entry = {
29
32
app : __DEV__
30
- ? [ APP_ENTRY_PATH , `webpack-hot-middleware/client?path=${ config . compiler_public_path } __webpack_hmr` ]
31
- : [ APP_ENTRY_PATH ] ,
33
+ ? APP_ENTRY_PATHS . concat ( `webpack-hot-middleware/client?path=${ config . compiler_public_path } __webpack_hmr` )
34
+ : APP_ENTRY_PATHS ,
32
35
vendor : config . compiler_vendor
33
36
}
34
37
Original file line number Diff line number Diff line change 81
81
"babel-core" : " ^6.3.17" ,
82
82
"babel-loader" : " ^6.2.0" ,
83
83
"babel-plugin-transform-runtime" : " ^6.3.13" ,
84
+ "babel-polyfill" : " ^6.9.0" ,
84
85
"babel-preset-es2015" : " ^6.3.13" ,
85
86
"babel-preset-react" : " ^6.3.13" ,
86
87
"babel-preset-react-optimize" : " ^1.0.1" ,
145
146
"karma-webpack-with-fast-source-maps" : " ^1.9.2" ,
146
147
"mocha" : " ^2.2.5" ,
147
148
"nodemon" : " ^1.8.1" ,
148
- "phantomjs-polyfill" : " 0.0.2" ,
149
149
"phantomjs-prebuilt" : " ^2.1.3" ,
150
150
"react-addons-test-utils" : " ^15.0.0" ,
151
151
"redbox-react" : " ^1.2.2" ,
Original file line number Diff line number Diff line change 1
1
// ---------------------------------------
2
2
// Test Environment Setup
3
3
// ---------------------------------------
4
+ import 'babel-polyfill'
4
5
import sinon from 'sinon'
5
6
import chai from 'chai'
6
7
import sinonChai from 'sinon-chai'
You can’t perform that action at this time.
0 commit comments