Skip to content

Commit a194031

Browse files
authored
Merge pull request #43 from jctrotter/discvr-21.3
Base demo plugin added to demo config
2 parents 64e9ee7 + 2375991 commit a194031

File tree

18 files changed

+484
-43040
lines changed

18 files changed

+484
-43040
lines changed

jbrowse/config/dev.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,19 @@ clientConfig.plugins =
2727
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
2828
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2929

30+
clientConfig.module.rules = clientConfig.module.rules.concat(
31+
{
32+
test: /\.m?js$/,
33+
exclude: /node_modules/,
34+
use: {
35+
loader: 'babel-loader',
36+
options: {
37+
presets: [
38+
['@babel/preset-env', { targets: "defaults" }],
39+
['@babel/preset-react']
40+
]
41+
}
42+
}
43+
})
3044

3145
module.exports = [clientConfig]

jbrowse/config/prod.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,19 @@ clientConfig.plugins =
2727
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
2828
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2929

30+
clientConfig.module.rules = clientConfig.module.rules.concat(
31+
{
32+
test: /\.m?js$/,
33+
exclude: /node_modules/,
34+
use: {
35+
loader: 'babel-loader',
36+
options: {
37+
presets: [
38+
['@babel/preset-env', { targets: "defaults" }],
39+
['@babel/preset-react']
40+
]
41+
}
42+
}
43+
})
3044

3145
module.exports = [clientConfig]

jbrowse/config/watch.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,19 @@ clientConfig.plugins =
2727
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
2828
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
2929

30+
clientConfig.module.rules = clientConfig.module.rules.concat(
31+
{
32+
test: /\.m?js$/,
33+
exclude: /node_modules/,
34+
use: {
35+
loader: 'babel-loader',
36+
options: {
37+
presets: [
38+
['@babel/preset-env', { targets: "defaults" }],
39+
['@babel/preset-react']
40+
]
41+
}
42+
}
43+
})
3044

3145
module.exports = [clientConfig]

0 commit comments

Comments
 (0)