feat(core): add global error handler (#8509)

This commit is contained in:
liuyi
2024-10-18 14:34:13 +08:00
committed by GitHub
parent 4b77f6ed34
commit 9b31183bd1
17 changed files with 120 additions and 55 deletions

View File

@@ -5,6 +5,11 @@ function testPackageName(regexp: RegExp): (module: any) => boolean {
// https://hackernoon.com/the-100-correct-way-to-split-your-chunks-with-webpack-f8a9df5b7758
export const productionCacheGroups = {
errorHandler: {
test: /global-error-handler/,
priority: 1000,
enforce: true,
},
asyncVendor: {
test: /[\\/]node_modules[\\/]/,
name(module: any) {