Skip to content

Commit 7aa0fa7

Browse files
committed
Fix babel export module
1 parent 837ebee commit 7aa0fa7

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.babelrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"vue-app"
4+
],
5+
"plugins": [
6+
"add-module-exports"
7+
]
8+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-github-buttons",
33
"description": "GitHub buttons component for Vue.",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"main": "dist/vue-github-buttons.js",
66
"author": "Saran Tanpituckpong <sarunta@gmail.com>",
77
"license": "Apache-2.0",
@@ -39,6 +39,8 @@
3939
},
4040
"devDependencies": {
4141
"autoprefixer": "^6.7.7",
42+
"babel-plugin-add-module-exports": "^0.2.1",
43+
"babel-preset-vue-app": "^0.5.0",
4244
"camelcase": "^4.0.0",
4345
"eslint": "^3.18.0",
4446
"eslint-config-gluons": "^1.0.4",

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ babel-messages@^6.23.0:
450450
dependencies:
451451
babel-runtime "^6.22.0"
452452

453+
babel-plugin-add-module-exports@^0.2.1:
454+
version "0.2.1"
455+
resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25"
456+
453457
babel-plugin-check-es2015-constants@^6.22.0:
454458
version "6.22.0"
455459
resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"

0 commit comments

Comments
 (0)