Skip to content

Commit

Permalink
Merge pull request #775 from eben-roux/patch-1
Browse files Browse the repository at this point in the history
- fixed tense of 'load' (now 'loaded')
  • Loading branch information
Julian committed Jul 3, 2016
2 parents 2a7755a + 076fe80 commit c3b7ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/type-moduleName.md
Expand Up @@ -9,7 +9,7 @@ A Loader-unique string that represents a module.

The **moduleName** is a string that serves as the canonical name for a module. It is used as the key in the module registry.

In Steal, as with most module loaders, each module is only load (executed) *once* even if it is being imported by dozens of other modules. In order to provide importing modules with the correct exported values Steal has a module registry; an object where the moduleName is the key and the value is metadata about the module, as well as it's exported value.
In Steal, as with most module loaders, each module is only loaded (executed) *once* even if it is being imported by dozens of other modules. In order to provide importing modules with the correct exported values Steal has a module registry; an object where the moduleName is the key and the value is metadata about the module, as well as it's exported value.

When a module imports another, such as `require("./foo")` the string used to import is called a [moduleIdentifier]. This identifier is then [steal.hooks.normalize normalized] which produces the canonical **moduleName**.

Expand Down

0 comments on commit c3b7ab6

Please sign in to comment.