Open loynoir opened 1 year ago
I think that it is a duplicate of #1420.
https://tc39.es/ecma262/#sec-module-namespace-exotic-objects
@Conaclos
Not sure about the definition.
Maybe it is duplicated.
Maybe it is a stricter subset of your issue there.
I have no idea, so, I left it opened.
Description
esbuild
is not keep tracking ofmodule namespace exotic objects
to have tree-shake optimization.Useful Link
module namespace exotic objects
https://github.com/evanw/esbuild/issues/3077#issuecomment-1518725003
Usage
Thus, user get a dot property like syntax with tree-shake optimization.
Reproduce
Actual
Expected
Like when
user.mts
Got