修复115固有jq导致加载冲突

This commit is contained in:
lzyme.dev@gmail.com
2026-08-30 20:10:07 +08:00
parent 50581be5a6
commit 06b2497ee1
4 changed files with 48 additions and 61 deletions
-15
View File
@@ -99,23 +99,8 @@ export default defineConfig({
'tabulator-tables': 'Tabulator',
'viewerjs': 'Viewer',
'qrcodejs': 'QRCode',
'layui-layer': 'layer',
},
},
}),
{
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;';
}
},
},
],
});