Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 5137148

Browse files
committed
Update karma webpack conf for webpack2
1 parent 44fb346 commit 5137148

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

karma.conf.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ module.exports = (config) => {
3131
},
3232
// as required by sinon: https://github.com/airbnb/enzyme/blob/master/docs/guides/webpack.md.
3333
externals: {
34-
"react/addons": true,
35-
"react/lib/ExecutionEnvironment": true,
36-
"react/lib/ReactContext": true,
34+
"react/addons": "react",
35+
"react/lib/ExecutionEnvironment": "react",
36+
"react/lib/ReactContext": "react",
3737
},
3838
devtool: "inline-source-map",
3939
module: {
4040
rules: [
4141
{
4242
test: /\.json$/,
43-
loader: "json",
43+
loader: "json-loader",
4444
},
4545
{
4646
test: /\.tsx?$/,
47-
loader: "awesome-typescript",
47+
loader: "awesome-typescript-loader",
4848
query: {
4949
sourceMap: true,
5050
module: "commonjs",
@@ -54,7 +54,7 @@ module.exports = (config) => {
5454
enforce: "post",
5555
test: /\.tsx?$/,
5656
include: path.resolve("src"),
57-
loader: "istanbul-instrumenter",
57+
loader: "istanbul-instrumenter-loader",
5858
exclude: [
5959
/\.spec\.tsx?$/,
6060
/node_modules/,

0 commit comments

Comments
 (0)