1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Fix karma webpack config

This commit is contained in:
Marcel
2018-10-09 17:40:25 +02:00
committed by GitHub
parent 10a3f08ee2
commit f5012d87cf

View File

@@ -23,8 +23,6 @@ var fs = require('fs');
// //
var testFile = process.env.KARMA_TEST_FILE || 'test/all-tests.js'; var testFile = process.env.KARMA_TEST_FILE || 'test/all-tests.js';
// make sure we're flagged as development to avoid wasting time optimising
webpack_config.mode = 'development';
process.env.PHANTOMJS_BIN = 'node_modules/.bin/phantomjs'; process.env.PHANTOMJS_BIN = 'node_modules/.bin/phantomjs';
@@ -205,7 +203,10 @@ module.exports = function (config) {
root: [ root: [
path.resolve('./test'), path.resolve('./test'),
], ],
modules: "node_modules", modules: [
path.resolve('./test'),
"node_modules"
],
}, },
devtool: 'inline-source-map', devtool: 'inline-source-map',
externals: { externals: {
@@ -213,6 +214,8 @@ module.exports = function (config) {
// (the 'commonjs' here means it will output a 'require') // (the 'commonjs' here means it will output a 'require')
"electron": "commonjs electron", "electron": "commonjs electron",
}, },
// make sure we're flagged as development to avoid wasting time optimising
mode: 'development',
}, },
webpackMiddleware: { webpackMiddleware: {