Creates a module which is an intermediate organizational tool for building a map.
It handles:
Initialization
Environment (dependency) capturing
Self-referencing
Segregating implementation into chunks, for the purpose of allowing the developer to split the implementation across files.
Obtaining a final map factory for export.
Takes in an optional async initialization function, which takes in the environment (a map) provided by the developer when they invoke the map factory, and returns an updated environment which is passed to your implementation, allowing for any needed initialization logic.
Stability
1 - experimental
Creates a module which is an intermediate organizational tool for building a map.
It handles:
Takes in an optional async initialization function, which takes in the environment (a map) provided by the developer when they invoke the map factory, and returns an updated environment which is passed to your implementation, allowing for any needed initialization logic.
Example