Skip to content

Commit 29865db

Browse files
authored
Simplify JBrowse webpack config (#131)
1 parent 9b73605 commit 29865db

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

jbrowse/config/dev.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const devConfig = require('../node_modules/@labkey/build/webpack/dev.config')
88

99
const entryPoints = require('../src/client/entryPoints');
1010
const constants = require('../node_modules/@labkey/build/webpack/constants');
11-
const webpack = require('webpack');
1211
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
1312

1413
const clientConfig = devConfig
@@ -23,9 +22,7 @@ clientConfig.resolve.fallback =
2322
"fs": false
2423
}
2524

26-
clientConfig.plugins =
27-
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
28-
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
25+
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2926

3027
clientConfig.module.rules = clientConfig.module.rules.concat(
3128
{

jbrowse/config/prod.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const prodConfig = require('../node_modules/@labkey/build/webpack/prod.config')
88

99
const entryPoints = require('../src/client/entryPoints');
1010
const constants = require('../node_modules/@labkey/build/webpack/constants');
11-
const webpack = require('webpack');
1211
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
1312

1413
const clientConfig = prodConfig
@@ -23,9 +22,7 @@ clientConfig.resolve.fallback =
2322
"fs": false
2423
}
2524

26-
clientConfig.plugins =
27-
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
28-
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
25+
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2926

3027
clientConfig.module.rules = clientConfig.module.rules.concat(
3128
{

jbrowse/config/watch.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const watchConfig = require('../node_modules/@labkey/build/webpack/watch.config'
88

99
const entryPoints = require('../src/client/entryPoints');
1010
const constants = require('../node_modules/@labkey/build/webpack/constants');
11-
const webpack = require('webpack');
1211
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")
1312

1413
const clientConfig = watchConfig
@@ -23,9 +22,7 @@ clientConfig.resolve.fallback =
2322
"fs": false
2423
}
2524

26-
clientConfig.plugins =
27-
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
28-
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
25+
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2926

3027
clientConfig.module.rules = clientConfig.module.rules.concat(
3128
{

0 commit comments

Comments
 (0)