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

packages/utils/src/worker-helper/index.ts里为什么要import dist里的文件? #1820

Closed
wfJoanna opened this issue Sep 5, 2023 · 1 comment

Comments

@wfJoanna
Copy link

wfJoanna commented Sep 5, 2023

L7源码里,packages/utils/src/worker-helper/index.ts这个文件里有这样一行代码:
import WorkerInlineSource from '../../dist/l7-utils.worker.js';

为什么要使用dist文件里的东西?

@lzxue
Copy link
Contributor

lzxue commented Sep 5, 2023

web Worker JS 文件需要引用编译好的代码

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