Open ShukantPal opened 3 months ago
I have a problem with that solution as I don't want to use CommonJS.
Could you provide a full reproduction so I can test some other options?
Sure, I'm building https://github.com/openblitz/www
You can run the build.sh
script and then pnpm dev
. It works because I have a patch (see patches directory) to modify vite-plugin-comlink
to be CommonJS.
I have a problem with that solution as I don't want to use CommonJS.
In that case, you can also set "type": "module"
in your package.json
. There might be other downstream implications of this change, however; in my testing, that also worked. I only chose to use CommonJS because it's not possible to patch the package.json
file using pnpm.
I encountered the exact same issue.
@mathe42 Could you please fix this. Thanks
Describe the bug
I'm developing a Svelte app and tried to add vite-plugin-comlink. Unfortunately, I faced a problem with no workaround w.r.t. loading the plugin:
To Reproduce
Have
"type": "module"
in your package.json and then this plugin.Desktop (please complete the following information):
Fix
Use CommonJS in
symbol.js