Skip to content

Commit b502e66

Browse files
committed
include browser build in npm package + expose on unpkg
1 parent df0eb97 commit b502e66

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules
33
example/example.build.js
4+
dist

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
"version": "3.4.1",
44
"description": "Babel plugin for Vue 2.0 JSX",
55
"main": "index.js",
6+
"unpkg": "dist/babel-plugin-transform-vue-jsx.min.js",
67
"files": [
78
"index.js",
8-
"lib"
9+
"lib",
10+
"dist"
911
],
1012
"scripts": {
1113
"lint": "eslint index.js",
1214
"test": "npm run lint && mocha --compilers js:babel-register",
1315
"dev": "cd example && webpack --watch",
14-
"build": "webpack -p index.js dist/babel-plugin-transform-vue-jsx.min.js --target=web --output-library=babel-plugin-transform-vue-jsx --output-library-target=umd --module-bind 'js=babel-loader'"
16+
"build": "webpack -p index.js dist/babel-plugin-transform-vue-jsx.min.js --target=web --output-library=babel-plugin-transform-vue-jsx --output-library-target=umd --module-bind 'js=babel-loader'",
17+
"prepubish": "npm run build"
1518
},
1619
"repository": {
1720
"type": "git",

0 commit comments

Comments
 (0)