-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
30 lines (28 loc) · 1.05 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const exportOnDemand = obj => {
Object.keys(obj).forEach(name => {
Object.defineProperty(module.exports, name, {
configurable: false,
enumerable: true,
get: obj[name]
});
});
};
// Export the general mixins and dev utilities.
exportOnDemand({
configHelper: () => require('./config-helper'),
cssModuleIdent: () => require('./css-module-ident'),
mixins: () => require('./mixins'),
optionParser: () => require('./option-parser'),
packageRoot: () => require('./package-root')
});
// Export the Webpack plugins.
exportOnDemand({
EnactFrameworkPlugin: () => require('./plugins/dll/EnactFrameworkPlugin'),
EnactFrameworkRefPlugin: () => require('./plugins/dll/EnactFrameworkRefPlugin'),
GracefulFsPlugin: () => require('./plugins/GracefulFsPlugin'),
ILibPlugin: () => require('./plugins/ILibPlugin'),
PrerenderPlugin: () => require('./plugins/PrerenderPlugin'),
SnapshotPlugin: () => require('./plugins/SnapshotPlugin'),
VerboseLogPlugin: () => require('./plugins/VerboseLogPlugin'),
WebOSMetaPlugin: () => require('./plugins/WebOSMetaPlugin')
});