You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks very much for reporting this. The problem here is that the definition file is being removed from the bundle because it's unused, but the call to the absent wrapper function is still being generated. This wasn't a problem with CommonJS wrapper closures because they are always considered to have side effects and tree shaking is disabled for them, but the new ESM wrapper closures still support tree shaking and can actually be completely removed. The fix will be in the next release.
This is a regression happened in
0.11.0
Compiling the following code
With
Produces
Which will give
init_define_module is not defined
when runIf you instead pass a primitive value to define (for example a string or number),
module.x
will remainmodule.x
(no replacement)The text was updated successfully, but these errors were encountered: