diff --git a/content/configuration/externals.md b/content/configuration/externals.md index 9ea1c33e5062..b0e710ed6b9a 100644 --- a/content/configuration/externals.md +++ b/content/configuration/externals.md @@ -52,6 +52,7 @@ Your bundle which has external dependencies can be used in various module contex * __global__ - An external library can be available as a global variable. The consumer can achieve this by including the external library in a script tag. This is the default setting for externals. * __commonjs__ - The consumer application may be using a CommonJS module system and hence the external library should be available as a CommonJS module. + * __commonjs2__ - Similar to the above line but where the export is `module.exports.default`. * __amd__ - Similar to the above line but using AMD module system. `externals` accepts various syntax and interprets them in different manners. @@ -98,4 +99,4 @@ This syntax is used to describe all the possible ways that an external library c ?> TODO - I think its overkill to list externals as regex. -For more information on how to use this configuration, please refer to the article on [how to author a library](/guides/author-libraries). \ No newline at end of file +For more information on how to use this configuration, please refer to the article on [how to author a library](/guides/author-libraries).