Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d6e45b2

Browse files
docs(configuration): document commonjs-module (#7305)
1 parent dc12545 commit d6e45b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/content/configuration/output.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,10 @@ If we specify `output.library.name` with `type: commmonjs2`, the return value of
12571257

12581258
T> Wondering the difference between CommonJS and CommonJS2 is? While they are similar, there are some subtle differences between them that are not usually relevant in the context of webpack. (For further details, please [read this issue](https://github.com/webpack/webpack/issues/1114).)
12591259

1260+
##### type: 'commonjs-module'
1261+
1262+
`commonjs-module` is equivalent to [`commonjs2`](#type-commonjs2). We may remove `commonjs-module` in future versions.
1263+
12601264
##### type: 'commonjs-static'
12611265

12621266
<Badge text="5.66.0+" />

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /