forked from bitovi/react-to-web-component
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.js
45 lines (40 loc) · 1.15 KB
/
build.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var stealTools = require("steal-tools");
var globalJS = require("steal-tools/lib/build/helpers/global").js;
var baseNormalize = globalJS.normalize();
stealTools.export({
steal: {
config: __dirname + "/package.json!npm",
main: "react-to-can-webcomponent",
},
outputs: {
"global core": {
modules: ["react-to-can-webcomponent"],
format: "global",
dest: __dirname + "/dist/react-to-can-webcomponent.js",
removeDevelopmentCode: false,
useNormalizedDependencies: true,
exports: {
"react-to-can-webcomponent": "reactToCanWebComponent"
},
normalize: function(depName, depLoad, curName, curLoad, loader){
return baseNormalize.call(this, depName, depLoad, curName, curLoad, loader, true);
},
},
"+bundled-es core": {
modules: ["react-to-can-webcomponent"],
addProcessShim: true,
dest: __dirname + "/dist/react-to-can-webcomponent.mjs",
removeDevelopmentCode: false
},
"+bundled-es core minified": {
modules: ["react-to-can-webcomponent"],
addProcessShim: true,
minify: true,
dest: __dirname + "/dist/react-to-can-webcomponent.min.mjs"
}
}
}).catch(function(e){
setTimeout(function(){
throw e;
},1);
});