Skip to content

Commit 70312e8

Browse files
authored
Merge pull request #691 from rongierlach/patch-1
Update externals.md
2 parents 08e2037 + dfefd80 commit 70312e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/configuration/externals.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Your bundle which has external dependencies can be used in various module contex
5252

5353
* __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.
5454
* __commonjs__ - The consumer application may be using a CommonJS module system and hence the external library should be available as a CommonJS module.
55+
* __commonjs2__ - Similar to the above line but where the export is `module.exports.default`.
5556
* __amd__ - Similar to the above line but using AMD module system.
5657

5758
`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
9899

99100
?> TODO - I think its overkill to list externals as regex.
100101

101-
For more information on how to use this configuration, please refer to the article on [how to author a library](/guides/author-libraries).
102+
For more information on how to use this configuration, please refer to the article on [how to author a library](/guides/author-libraries).

0 commit comments

Comments
 (0)