mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-09-28 07:36:38 +08:00
修复dev下重复依赖
This commit is contained in:
Vendored
+3283
-3286
File diff suppressed because it is too large
Load Diff
@@ -103,5 +103,19 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
}),
|
||||
{
|
||||
name: 'layui-layer-dev-shim',
|
||||
apply: 'serve',
|
||||
resolveId(id) {
|
||||
if (id === 'layui-layer') {
|
||||
return '\0layui-layer-shim';
|
||||
}
|
||||
},
|
||||
load(id) {
|
||||
if (id === '\0layui-layer-shim') {
|
||||
return 'export default window.layer;';
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user