We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)
The text was updated successfully, but these errors were encountered:
感谢您提供详细的信息。您提到在使用 SharedWorker 时,new URL('', import.meta.url) 不能正常工作,而 Worker 可以正常加载。
SharedWorker
new URL('', import.meta.url)
Worker
这是一个关于 SharedWorker 的新特性请求,希望能够支持 new URL('', import.meta.url) 的方式。由于这是一个新功能请求,可能需要开发团队进行评估和实现。
如果您有更多的细节或者需要进一步的帮助,请在评论中描述您的问题,并@petercat-assistant 以便我可以继续为您提供帮助。
Sorry, something went wrong.
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: