mirror of
https://github.com/fireinrain/JHS-enhance.git
synced 2026-10-13 21:06:37 +08:00
修复dev下重复依赖
This commit is contained in:
Vendored
+1
-4
@@ -7496,10 +7496,7 @@ ${value}\r
|
|||||||
btn.textContent = "字幕搜索";
|
btn.textContent = "字幕搜索";
|
||||||
const refreshSubtitleFileTip = () => {
|
const refreshSubtitleFileTip = () => {
|
||||||
const groups = /* @__PURE__ */ new Map();
|
const groups = /* @__PURE__ */ new Map();
|
||||||
((getSubtitleEntries == null ? void 0 : getSubtitleEntries()) || []).forEach(({
|
((getSubtitleEntries == null ? void 0 : getSubtitleEntries()) || []).forEach(({directory, files = []}) => {
|
||||||
directory,
|
|
||||||
files = []
|
|
||||||
}) => {
|
|
||||||
const path = String(directory || "").trim();
|
const path = String(directory || "").trim();
|
||||||
if (!path) return;
|
if (!path) return;
|
||||||
if (!groups.has(path)) groups.set(path, /* @__PURE__ */ new Set());
|
if (!groups.has(path)) groups.set(path, /* @__PURE__ */ new Set());
|
||||||
|
|||||||
@@ -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