-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Is there a way to generate code which is compatible with ES5?
Currently the code generated by the plugin uses require to link http(s), vm, etc. even when module output is explicitly enabled (output.module, experiments.outputModule, output.libraryTarget, output.chunkFormat, etc.). I believe that it is not a correct behaviour, as require is not available in the module context.
On top of that, the plugin also uses exports, __dirname and similar globals, which is also problematic.
The reason that modules support is needed is that new Nuxt 3 uses modules output format and our company is interested in integrating Nuxt and Module Federation.
I am willing to work on adding this feature to the plugin if my help is needed.
Metadata
Metadata
Assignees
Labels
No labels