darionco / rollup-plugin-web-worker-loader

Rollup plugin to load Workers. Supports inlining, dependencies, source maps, NodeJS and browsers.
MIT License
112 stars 31 forks source link

import error when run rollup -c -w #37

Closed xudamin closed 3 years ago

xudamin commented 3 years ago

when i import the worker in more than one place, there will appear an error Error: 'default' is not exported by src\worker\xxxWorker.js。 if there is only one file import the worker, there is nothing wrong.

darionco commented 3 years ago

I have tried to reproduce this bug in several ways and importing the worker from different files while in watch mode seems to work just fine. Do you have a repo or example project I can look at? Thanks!

darionco commented 3 years ago

Closing as I am not able to reproduce this issue. Feel free to re-open with more details.