mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-01 15:06:59 +00:00
bundle built-in modules together
This commit is contained in:
@@ -48,9 +48,26 @@ module.exports = options => {
|
||||
modules: ['.', 'src', 'node_modules', '../app/node_modules', '../node_modules'].map(x => path.join(options.dirname, x)),
|
||||
extensions: ['.ts', '.js'],
|
||||
},
|
||||
ignoreWarnings: [/Failed to parse source map/],
|
||||
module: {
|
||||
rules: [
|
||||
...options.rules ?? [],
|
||||
{
|
||||
test: /\.js$/,
|
||||
enforce: 'pre',
|
||||
use: {
|
||||
loader: 'source-map-loader',
|
||||
options: {
|
||||
filterSourceMappingUrl: (url, resourcePath) => {
|
||||
if (/node_modules/.test(resourcePath)) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: {
|
||||
|
Reference in New Issue
Block a user