Skip to content

Commit

Permalink
add esm build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 26, 2017
1 parent 8102b42 commit ffd61f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ build([
{
dest: resolve('dist/vue-router.common.js'),
format: 'cjs'
},
{
dest: resolve('dist/vue-router.esm.js'),
format: 'es'
}
].map(genConfig))

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"author": "Evan You",
"license": "MIT",
"main": "dist/vue-router.common.js",
"module": "dist/vue-router.esm.js",
"unpkg": "dist/vue-router.js",
"repository": {
"type": "git",
"url": "https://github.com/vuejs/vue-router.git"
Expand All @@ -14,6 +16,7 @@
"dist/vue-router.js",
"dist/vue-router.min.js",
"dist/vue-router.common.js",
"dist/vue-router.esm.js",
"src",
"types/index.d.ts",
"types/router.d.ts",
Expand Down Expand Up @@ -79,6 +82,5 @@
"vue-template-compiler": "^2.1.0",
"webpack": "^2.2.0",
"webpack-dev-middleware": "^1.9.0"
},
"unpkg": "dist/vue-router.js"
}
}

0 comments on commit ffd61f9

Please sign in to comment.