File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 8
8
}
9
9
}]
10
10
]
11
- }
11
+ },
12
+ "browser" : {
13
+ "presets" : [
14
+ [
15
+ " @babel/preset-env" ,
16
+ {
17
+ "useBuiltIns" : " entry" ,
18
+ "corejs" : { "version" : 2 }
19
+ }
20
+ ]
21
+ ]
22
+ },
12
23
}
13
24
}
Original file line number Diff line number Diff line change 9
9
"typings" : " types/consola.d.ts" ,
10
10
"scripts" : {
11
11
"build" : " rm -rf dist && yarn build:node && yarn build:browser" ,
12
- "build:node" : " bili src/node.js --file-name consola.js --format cjs --bundle-node-modules --minify --no-map" ,
13
- "build:browser" : " bili src/browser.js --file-name consola.browser.js --format umd --module-name consola --bundle-node-modules --minify --no-map" ,
12
+ "build:node" : " NODE_ENV=node bili src/node.js --file-name consola.js --format cjs --bundle-node-modules --minify --no-map" ,
13
+ "build:browser" : " NODE_ENV=browser bili src/browser.js --file-name consola.browser.js --format umd --module-name consola --bundle-node-modules --minify --no-map" ,
14
14
"demo" : " node demo" ,
15
15
"browser" : " serve" ,
16
16
"test" : " yarn lint && yarn test:types && yarn build && jest test" ,
You can’t perform that action at this time.
0 commit comments