diff --git a/jest.config.js b/jest.config.js index ea1a8683..9a969f19 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,9 +1,5 @@ module.exports = { - transformIgnorePatterns: [ - '/node_modules/', - '/dist/', - ], - watchPathIgnorePatterns: [ - '/test/js', - ], + transformIgnorePatterns: ['/node_modules/', '/dist/'], + watchPathIgnorePatterns: ['/test/js'], + testEnvironment: 'node', }; diff --git a/src/index.js b/src/index.js index c8f641bb..eafae28a 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,10 @@ import webpack from 'webpack'; import sources from 'webpack-sources'; const { ConcatSource, SourceMapSource, OriginalSource } = sources; -const { Template, util: { createHash } } = webpack; +const { + Template, + util: { createHash }, +} = webpack; const NS = path.dirname(fs.realpathSync(__filename)); @@ -97,7 +100,12 @@ class CssModule extends webpack.Module { } class CssModuleFactory { - create({ dependencies: [dependency] }, callback) { + create( + { + dependencies: [dependency], + }, + callback + ) { callback(null, new CssModule(dependency)); } }