ECMAScript Cookbook
上QQ阅读APP看书,第一时间看更新

Nesting modules under a single namespace

As the number of modules grows, patterns start to emerge. For practical and architectural reasons, it makes sense to group multiple modules together and use them as a single package.

This recipe demonstrates how to collect multiple modules together and use them as a single package.