diff --git a/content/guides/author-libraries.md b/content/guides/author-libraries.md index aa599a328e02..302b9b3139d9 100644 --- a/content/guides/author-libraries.md +++ b/content/guides/author-libraries.md @@ -127,6 +127,8 @@ module.exports = { This means that your library expects a dependency named `lodash` to be available in the consumer's environment. +If your libary targets UMD, it's important to add all of the above mentioned ways of loading the external (`commonjs`, `commonjs2`, `amd` and `root`) as leaving one out will cause strange errors for a consumer trying to load your library in that environment. + ### Add `libraryTarget`