Skip to content

Commit 8d1ef38

Browse files
authored
docs(guide): Make a note of ESM namespace toStringTag (#8038)
1 parent 2a30e40 commit 8d1ef38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/content/guides/ecma-script-modules.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ import * as module from "./module.js";
6262
module.fun();
6363
```
6464

65+
When importing a namespace object from an ECMAScript Module, webpack follows the ESM convention of setting `Symbol.toStringTag` to "Module" on the namespace object.
66+
6567
## Flagging modules as ESM
6668

6769
By default webpack will automatically detect whether a file is an ESM or a different module system.

0 commit comments

Comments
 (0)