diff --git a/contributor_docs/creating_libraries.md b/contributor_docs/creating_libraries.md index 38de55461e..4aadf06858 100644 --- a/contributor_docs/creating_libraries.md +++ b/contributor_docs/creating_libraries.md @@ -282,6 +282,33 @@ if (typeof p5 !== undefined) { In the above snippet, an additional `if` condition is added around the call to `p5.registerAddon()`. This is done to support both direct usage in ESM modules (where users can directly import your addon function then call `p5.registerAddon()` themselves) and after bundling support regular `