Skip to content

Commit 9e2d046

Browse files
committed
Add esm module distribution
1 parent 0e6fa13 commit 9e2d046

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "3.5.0",
44
"description": "Async computed properties for Vue",
55
"main": "dist/vue-async-computed.js",
6+
"module": "dist/vue-async-computed.esm.js",
67
"files": [
78
"bin/",
89
"dist/"
@@ -14,8 +15,9 @@
1415
"watch": "watch 'npm run build' src test",
1516
"test": "babel-node --presets env test/index.js | tspec",
1617
"prebuild": "npm run check -s && npm run clean -s && mkdirp dist",
17-
"build": "npm run rollup -s && npm run babel -s",
18-
"rollup": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
18+
"build": "npm run rollup-esm -s && npm run rollup-umd -s && npm run babel -s",
19+
"rollup-esm": "rollup src/index.js --output.format esm --name AsyncComputed --output.file dist/vue-async-computed.esm.js",
20+
"rollup-umd": "rollup src/index.js --output.format umd --name AsyncComputed --output.file dist/vue-async-computed.esnext.js",
1921
"babel": "babel --optional runtime dist/vue-async-computed.esnext.js --out-file dist/vue-async-computed.js",
2022
"postbuild": "npm run test -s",
2123
"coverage": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover test/index.js",

0 commit comments

Comments
 (0)