Skip to content

Commit ff6ace4

Browse files
committed
Integrated Hello World plugin as part of code base
1 parent b787a7e commit ff6ace4

File tree

15 files changed

+367
-494
lines changed

15 files changed

+367
-494
lines changed

jbrowse/config/dev.config.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,21 @@ clientConfig.resolve.fallback =
2525

2626
clientConfig.plugins =
2727
[new webpack.ProvidePlugin({regeneratorRuntime: 'regenerator-runtime'}),
28-
new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))
28+
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]

jbrowse/resources/external/minimalSession.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
}
3030
}
3131
},
32-
"plugins": [
33-
{
34-
"name": "MyProject",
35-
"url": "<CONTEXT_PATH>/jbrowse/plugins/demoPlugin/dist/jbrowse-plugin-my-project.umd.development.js"
36-
},],
3732
"location": "1:196,734,341..197,535,702",
3833
"tracks": [
3934
{

0 commit comments

Comments
 (0)