Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedWorker不能正常支持 new URL('', import.meta.url),Worker支持 #1686

Open
jxue1981 opened this issue Nov 8, 2024 · 1 comment

Comments

@jxue1981
Copy link

jxue1981 commented Nov 8, 2024

Worker方式,编译后 (能正常加载):
const worker = new Worker(new URL("packages_utils_src_Http_index_js_q_s57j-worker.js", self.document ? self.document.baseURI : self.location.href));

SharedWorker方式,编译后(不能正常加载):
const worker = new SharedWorker(new URL('../WebWorker/Http/index.js', self.document ? self.document.baseURI : self.location.href));

期待可以支持SharedWorker的new URL('', import.meta.url)

Copy link

感谢您提供详细的信息。您提到在使用 SharedWorker 时,new URL('', import.meta.url) 不能正常工作,而 Worker 可以正常加载。

这是一个关于 SharedWorker 的新特性请求,希望能够支持 new URL('', import.meta.url) 的方式。由于这是一个新功能请求,可能需要开发团队进行评估和实现。

如果您有更多的细节或者需要进一步的帮助,请在评论中描述您的问题,并@petercat-assistant 以便我可以继续为您提供帮助。

@xusd320 xusd320 added good first issue Good for newcomers and removed good first issue Good for newcomers labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants