mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(build): exclude ag-grid from vendors chunk
This commit is contained in:
@@ -18,28 +18,34 @@ module.exports = {
|
||||
compact: prod,
|
||||
presets: [
|
||||
"@babel/preset-react",
|
||||
['@babel/preset-typescript', { isTSX: true, allExtensions: true, onlyRemoveTypeImports: true }],
|
||||
['@babel/preset-typescript', { isTSX: true, allExtensions:true }],
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
targets: {
|
||||
esmodules: true,
|
||||
},
|
||||
modules: false,
|
||||
// "useBuiltIns": "usage"
|
||||
targets: {
|
||||
browsers: [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 edge version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
exclude: ["transform-async-to-generator", "transform-regenerator"],
|
||||
}
|
||||
]
|
||||
],
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'babel-plugin-transform-typescript-metadata',
|
||||
'@babel/plugin-proposal-nullish-coalescing-operator',
|
||||
'@babel/plugin-proposal-optional-chaining',
|
||||
['@babel/plugin-proposal-decorators', { legacy: true }],
|
||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||||
["@babel/plugin-proposal-object-rest-spread", { loose: true, useBuiltIns: true }],
|
||||
'react-require',
|
||||
'reshadow/babel',
|
||||
/*!prod &&*/ [
|
||||
/*!prod &&*/[
|
||||
"babel-plugin-module-resolver",
|
||||
{
|
||||
alias: {
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = (env, argv) => merge(commonConfig(env, argv), {
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
test: /[\\/]node_modules[\\/](?!@ag-grid)(.[a-zA-Z0-9.\-_]+)[\\/]/,
|
||||
name: 'vendors',
|
||||
chunks: 'all',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user