Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 16ce8c0

Browse files
chore(test): update to webpack 4.0.0
1 parent ac5d899 commit 16ce8c0

File tree

3 files changed

+453
-166
lines changed

3 files changed

+453
-166
lines changed

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function karmaServedFiles(ngVersion) {
3232
}
3333

3434
var webpackConfig = module.exports = {
35+
mode: 'development',
3536
resolve: {
3637
modules: ['node_modules'],
3738
extensions: ['.js', '.jsx', '.ts', '.tsx']
@@ -76,15 +77,14 @@ module.exports = function(config) {
7677

7778
// Start these browsers, currently available:
7879
// Chrome, ChromeCanary, Firefox, Opera, Safari, PhantomJS
79-
browsers: ['PhantomJS'],
80+
browsers: ['ChromeHeadless'],
8081

8182
frameworks: ['jasmine'],
8283

8384
plugins: [
8485
require('karma-webpack'),
8586
require('karma-sourcemap-loader'),
8687
require('karma-jasmine'),
87-
require('karma-phantomjs-launcher'),
8888
require('karma-chrome-launcher')
8989
],
9090

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,26 +82,27 @@
8282
"@types/jasmine": "2.8.6",
8383
"@types/jquery": "3.3.0",
8484
"@uirouter/publish-scripts": "2.3.1",
85+
"babel-runtime": "^6.26.0",
8586
"dts-downlevel": "0.3.0",
86-
"fork-ts-checker-webpack-plugin": "0.3.0",
87+
"fork-ts-checker-webpack-plugin": "0.4.0",
8788
"jasmine-core": "3.0.0",
8889
"karma": "2.0.0",
8990
"karma-chrome-launcher": "2.2.0",
9091
"karma-jasmine": "1.1.1",
9192
"karma-phantomjs-launcher": "1.0.4",
9293
"karma-sourcemap-loader": "0.3.7",
93-
"karma-webpack": "2.0.9",
94+
"karma-webpack": "2.0.11",
9495
"lodash": "4.17.5",
9596
"rollup": "0.55.5",
9697
"rollup-plugin-node-resolve": "3.0.2",
9798
"rollup-plugin-sourcemaps": "0.4.2",
9899
"rollup-plugin-uglify": "3.0.0",
99100
"shelljs": "0.8.1",
100101
"shx": "0.2.2",
101-
"ts-loader": "3.5.0",
102+
"ts-loader": "4.0.0",
102103
"tslint": "5.9.1",
103104
"tslint-eslint-rules": "4.1.1",
104-
"typescript": "2.7.1",
105-
"webpack": "3.11.0"
105+
"typescript": "2.7.2",
106+
"webpack": "4.0.0"
106107
}
107108
}

0 commit comments

Comments
 (0)