BuilderIO / partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
https://partytown.builder.io
MIT License
12.88k stars 427 forks source link

Using Partytown when `script` already has a `type` defined #404

Open miina opened 1 year ago

miina commented 1 year ago

I'm trying to use Partytown with Marfeel which loads two scripts: one in ES5 and the other in ES6 where it's recommended to load the file of ES6 with type="module".

Is there a way to still use it with Partytown while keeping "module" as type, too?

jamaluddinrumi commented 1 year ago

since partytown rely on web worker that does not fully support ES module in all browsers, it can't be achieved for now

https://github.com/BuilderIO/partytown/issues/195#issuecomment-1154275550