diff options
author | thaissiqueira <thais.siqueira@thoughtworks.com> | 2017-03-16 14:07:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 14:07:04 -0300 |
commit | f9ab38869b29eb4560b8b8f69c1dab191adfe782 (patch) | |
tree | 5328a3b6694e6fe5714bd50d31fbd4d5871688a0 /web-ui/webpack.test.config.js | |
parent | d1459b65bc24e51b4cf350de052cf8cfa5cd88d8 (diff) | |
parent | 965ab52b3d3a7a75347cfa58c4bbbe16ea64b014 (diff) |
Merge pull request #1014 from pixelated/update-recovery-code
Update recovery code
Diffstat (limited to 'web-ui/webpack.test.config.js')
-rw-r--r-- | web-ui/webpack.test.config.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web-ui/webpack.test.config.js b/web-ui/webpack.test.config.js index 3dc1b311..699aa12e 100644 --- a/web-ui/webpack.test.config.js +++ b/web-ui/webpack.test.config.js @@ -1,17 +1,17 @@ var path = require('path'); var webpack = require('webpack'); var aliases = require('./config/alias-webpack'); +var nodeExternals = require('webpack-node-externals'); module.exports = { + target: 'node', resolve: { alias: aliases, extensions: ['', '.js'] }, - externals: { - 'react/lib/ExecutionEnvironment': true, - 'react/addons': true, - 'react/lib/ReactContext': 'window' - }, + externals: [nodeExternals({ + whitelist: [/\.(?!(?:jsx?|json)$).{1,5}$/i] + })], module: { loaders: [ { |