重新修正忽视规则,防止clone后项目无法复现

This commit is contained in:
tianmo committed 2026-08-30 01:00:12 +08:00
1 parent a516777eb6
commit bd1204f1b9
133 files changed
+69225 -2

No files matched your search

+5
View File
@@ -41,6 +41,11 @@ export default defineConfig({
port: 5173,
host: true,
},
resolve: {
// 强制 spine-core 只解析到同一份模块,避免 spine-pixi-v7 与应用各自 import
// 形成两份类实例,导致 `attachment instanceof RegionAttachment` 判 false、Spine 渲染空白。
dedupe: ['@esotericsoftware/spine-core'],
},
// 让 node_modules 里的 ESM 依赖能直接 work
// 必须同时预打包 spine-core 与 spine-pixi-v7:否则 spine-core 会存在两份类实例,
// 使 spine-pixi-v7 里 `attachment instanceof RegionAttachment` 对项目解析的 attachment 判 false,