diff --git a/doc/api/modules.md b/doc/api/modules.md index 5f920ec324bc21..5b001026d02f8b 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -286,7 +286,7 @@ console.log(distance); // undefined ``` Notice in the example above, when the `module.exports` export name is used, named exports -will be lost to CommonJS consumers. To allow CommonJS consumers to continue accessing +will be lost to CommonJS consumers. To allow CommonJS consumers to continue accessing named exports, the module can make sure that the default export is an object with the named exports attached to it as properties. For example with the example above, `distance` can be attached to the default export, the `Point` class, as a static method.