You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/configuration/externals.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ Your bundle which has external dependencies can be used in various module contex
52
52
53
53
*__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.
54
54
*__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`.
55
56
*__amd__ - Similar to the above line but using AMD module system.
56
57
57
58
`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
98
99
99
100
?> TODO - I think its overkill to list externals as regex.
100
101
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