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
This is the reason that Brolog upgrade from v0.4 to v1.0.
You need to tell Typescript to emit CommonJS, not UMD. UMD is doing funky stuff with the require function, passing it as an argument into factory. This means webpack can't look at all usages of the top-level require function and figure out exactly what modules you're loading.
The require inside of factory is an argument, so it's different from the top-level require. They have the same name, but that's just a coincidence and webpack's static analysis knows they're not the same variable. (They store the same value at runtime, but static analysis can't figure that out)
This is the reason that Brolog upgrade from v0.4 to v1.0.
See:
https://www.reddit.com/r/typescript/comments/4q09uv/help_webpack_weirdness_require_function_is_used/
The text was updated successfully, but these errors were encountered: