From d6e45b22cbe480b292f4f64693ab972224914b70 Mon Sep 17 00:00:00 2001 From: Sam Chen Date: Fri, 12 Jul 2024 15:08:50 +0800 Subject: [PATCH] docs(configuration): document commonjs-module (#7305) --- src/content/configuration/output.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/configuration/output.mdx b/src/content/configuration/output.mdx index 44075acdded4..d946c1c79a8a 100644 --- a/src/content/configuration/output.mdx +++ b/src/content/configuration/output.mdx @@ -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'