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
The globalThis.obj.answer doesn't contains __ESModule flags, which cause problem when globalThis.obj.answer is used in another module loader(like amd).
but webpack generated __esModule flags for both internal and exports namespace object.
The text was updated successfully, but these errors were encountered:
This is very deliberate. People want to be able to use __esModule as an ESM export name via export { __esModule }: #1591. So esbuild no longer introduces __esModule into ESM exports at all. If you want __esModule you should import the module with require() instead of import. Only CommonJS-style imports get __esModule.
It seems that esbuild only add __esModule for export namespace object and not for internal namespace object.
input.ts
build.sh
bundle.js
The globalThis.obj.answer doesn't contains __ESModule flags, which cause problem when globalThis.obj.answer is used in another module loader(like amd).
but webpack generated
__esModule
flags for both internal and exports namespace object.The text was updated successfully, but these errors were encountered: