diff --git a/src/content/configuration/output.mdx b/src/content/configuration/output.mdx index 5f52e8ec6d9f..fa9dc6a00932 100644 --- a/src/content/configuration/output.mdx +++ b/src/content/configuration/output.mdx @@ -967,7 +967,9 @@ MyLibrary = _entry_return_; Be aware that if `MyLibrary` isn't defined earlier your library will be set in global scope. -##### type: 'assign-properties' +##### type: 'assign-properties' + + ```js module.exports = { @@ -1148,7 +1150,7 @@ T> Wondering the difference between CommonJS and CommonJS2 is? While they are si ##### type: 'commonjs-static' - + ```js module.exports = { @@ -1617,7 +1619,9 @@ MyLibrary = _entry_return_; Be aware that if `MyLibrary` isn't defined earlier your library will be set in the global scope. -#### libraryTarget: 'assign-properties' +#### libraryTarget: 'assign-properties' + + W> Prefer to use [output.library.type: 'assign-properties'`](#type-assign-properties).