chore(core): wrong worker url prefix (#11769)

This commit is contained in:
liuyi
2025-04-17 18:52:55 +08:00
committed by GitHub
parent 570dc79e3d
commit bfecd1856b

View File

@@ -1,6 +1,7 @@
export function getWorkerUrl(name: string) {
return (
environment.publicPath +
// NOTE: worker can not use publicPath because it must obey the same-origin policy
(environment.subPath || '/') +
'js/' +
`${name}-${BUILD_CONFIG.appVersion}.worker.js`
);