Basic info:
- **Node.js version: 18
- **jsdom version: 21.1.1
Happens in any scenario where you try to load a script dynamically as module, when is text/javascript works fine, but module no
in chrome after the script is loaded i can get perfectly the event
const script = this.jsDom.window.document.createElement('script');
script.src = url;
script.type = 'module';
script.async = true;
script.onload = async () => {
await fancyCode();
console.log('hi')
};
this.jsDom.window.document.head.appendChild(script);
Basic info:
Happens in any scenario where you try to load a script dynamically as module, when is
text/javascriptworks fine, but module noin chrome after the script is loaded i can get perfectly the event