Skip to content

Commit

Permalink
docs(configuration): document commonjs-module (#7305)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan authored Jul 12, 2024
1 parent dc12545 commit d6e45b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/configuration/output.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,10 @@ If we specify `output.library.name` with `type: commmonjs2`, the return value of

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).)

##### type: 'commonjs-module'

`commonjs-module` is equivalent to [`commonjs2`](#type-commonjs2). We may remove `commonjs-module` in future versions.

##### type: 'commonjs-static'

<Badge text="5.66.0+" />
Expand Down

0 comments on commit d6e45b2

Please sign in to comment.