1 | const exportOnDemand = obj => {
|
2 | Object.keys(obj).forEach(name => {
|
3 | Object.defineProperty(module.exports, name, {
|
4 | configurable: false,
|
5 | enumerable: true,
|
6 | get: obj[name]
|
7 | });
|
8 | });
|
9 | };
|
10 |
|
11 | // Export the general mixins and dev utilities.
|
12 | exportOnDemand({
|
13 | mixins: () => require('./mixins'),
|
14 | configHelper: () => require('./config-helper'),
|
15 | packageRoot: () => require('./package-root'),
|
16 | optionParser: () => require('./option-parser')
|
17 | });
|
18 |
|
19 |
|
20 | exportOnDemand({
|
21 | EnactFrameworkPlugin: () => require('./plugins/dll/EnactFrameworkPlugin'),
|
22 | EnactFrameworkRefPlugin: () => require('./plugins/dll/EnactFrameworkRefPlugin'),
|
23 | EnzymeAdapterPlugin: () => require('./plugins/EnzymeAdapterPlugin'),
|
24 | GracefulFsPlugin: () => require('./plugins/GracefulFsPlugin'),
|
25 | ILibPlugin: () => require('./plugins/ILibPlugin'),
|
26 | PrerenderPlugin: () => require('./plugins/PrerenderPlugin'),
|
27 | SnapshotPlugin: () => require('./plugins/SnapshotPlugin'),
|
28 | VerboseLogPlugin: () => require('./plugins/VerboseLogPlugin'),
|
29 | WebOSMetaPlugin: () => require('./plugins/WebOSMetaPlugin')
|
30 | });
|