Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions jbrowse/config/dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/

const devConfig = require('../node_modules/@labkey/build/webpack/dev.config')
const devConfig = require('../node_modules/@labkey/build/config/dev.config')

const entryPoints = require('../src/client/entryPoints');
const constants = require('../node_modules/@labkey/build/webpack/constants');
const constants = require('../node_modules/@labkey/build/config/constants');

// TODO: this is probably not needed
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")

const clientConfig = devConfig

// TODO: this is probably not needed
// See: https://stackoverflow.com/questions/68707553/uncaught-referenceerror-buffer-is-not-defined
clientConfig.resolve.fallback =
{
"buffer": require.resolve("buffer")
}

// TODO: this is probably not needed
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))

clientConfig.output.publicPath = 'auto'
Expand Down
8 changes: 6 additions & 2 deletions jbrowse/config/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/

const prodConfig = require('../node_modules/@labkey/build/webpack/prod.config')
const prodConfig = require('../node_modules/@labkey/build/config/prod.config')

const entryPoints = require('../src/client/entryPoints');
const constants = require('../node_modules/@labkey/build/webpack/constants');
const constants = require('../node_modules/@labkey/build/config/constants');

// TODO: this is probably no longer required
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")

const clientConfig = prodConfig

// TODO: this is probably no longer required
// See: https://stackoverflow.com/questions/68707553/uncaught-referenceerror-buffer-is-not-defined
clientConfig.resolve.fallback =
{
Expand All @@ -23,6 +26,7 @@ clientConfig.resolve.fallback =
"buffer": require.resolve("buffer")
}

// TODO: this might also not be needed
clientConfig.plugins = [new NodePolyfillPlugin()].concat(constants.processPlugins(entryPoints))

clientConfig.output.publicPath = 'auto'
Expand Down
24 changes: 0 additions & 24 deletions jbrowse/config/watch.config.js

This file was deleted.

Loading