mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-09-20 20:02:05 +08:00
fix(manager): 钉住 webpack 5.108.4,修复生产构建 $filters 全部报错
webpack 5.108.0 回归(webpack/webpack#21278):生产构建在 mangleExports 下遇到 namespace import 整体逃逸(app.config.globalProperties.$filters = filters)时,会把混淆后的导出名当属性路径渲染(u6 -> .u[6]),导致 $filters.unitPrice 等全部报 Cannot read properties of undefined (reading '6');dev server 不启用 mangleExports,本地无法复现。 - manager:webpack 固定 5.108.4(devDependencies + resolutions),pnpm-lock 同步更新 - buyer:纳入 pnpm-lock.yaml(webpack 5.111.0) Refs: https://github.com/webpack/webpack/issues/21278
This commit is contained in:
@@ -53,10 +53,11 @@
|
||||
"style-loader": "^3.3.4",
|
||||
"style-resources-loader": "^1.5.0",
|
||||
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
||||
"webpack": "^5.95.0"
|
||||
"webpack": "5.108.4"
|
||||
},
|
||||
"resolutions": {
|
||||
"minimatch": "^3.1.2",
|
||||
"@achrinza/node-ipc": "9.2.2"
|
||||
"@achrinza/node-ipc": "9.2.2",
|
||||
"webpack": "5.108.4"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user