developit / developit/web-worker
Running through rollup for node causes issues with dynamic require
未关闭
- 主要语言
- JavaScript
- 星标
- 1.2k
- 派生
- 57
- PR 合并指标
- 30 天内没有已合并 PR
描述
Thanks for a neat little library!
I was attempting at incorporating it into a library of mine which I bundle using rollup and I get an issue
````
Error: Dynamic requires are not currently supported by rollup-plugin-commonjs
````
which was related to [this line of your library](
https://github.com/developit/web-worker/blob/master/node.js#L190)
From what I can tell it looks like it's to do with requiring the URL of the worker?
Anyway just thought I'd flag it as other users of rollup may run into the same issue.
Cheers
Rowan
贡献指南
评估
这个 Issue 还没有评估数据。