[ plugin-legacy ] 页面内import worker 。构建后,chunk或者 assets目录内并没有生成work文件(已定位问题为使用plugin-legacy导致) #9305
Closed
7 tasks done
Labels
feat: web workers
p4-important
Violate documented behavior or significantly improves performance (priority)
plugin: legacy
Describe the bug
import Worker from '@XXX/worker/down-count?worker';
开发源码
生产报错
开发环境 下正常, 构建后生产环境找不到dow-count.js 并报错。进入dist后,也没有生成down-count相关的chunk
### 2022-07-25 问题已定位,在使用 plugin-legacy 的情况下,会出现上述问题,注释legacy代码,worker正常打包
Reproduction
git@gitee.com:henry-the-great/vite_worker_bug.git
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: