Closed eight04 closed 3 years ago
Not yet, sadly. The OMT plugin is necessary for as long as we don’t have full support for module workers in every browser as OMT injects a tiny AMD loader. Once browsers have caught up, the entire OMT plugin will become pretty much obsolete (and I can’t wait!).
Is it possible to drop OMT dependency by emitting the wrapper chunk via
this.emitFile
and reference the path usingimport.meta.ROLLUP_FILE_referenceId
?https://rollupjs.org/guide/en/#thisemitfileemittedfile-emittedchunk--emittedasset--string