Skip to content

Commit

Permalink
fix karma conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jkillian committed Jun 13, 2019
1 parent 2a2844e commit bbb572f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ module.exports = function (config) {
};

// eslint-disable-next-line global-require
const webpackConfig = require('./webpack.config.js')[0];
const webpackConfigs = require('./webpack.config.js');
// find the config for our main dev build
const webpackConfig = webpackConfigs.find(c => c.output.filename === 'js-joda-timezone.js')
// for the karma test runs, we don't want to have any externals,
// especially js-joda should be included!
webpackConfig.externals = undefined;
Expand Down

0 comments on commit bbb572f

Please sign in to comment.