Skip to content

Commit

Permalink
chore: bundling with browser environment
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Apr 28, 2020
1 parent 6eb36c9 commit 4106d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wya/vc",
"version": "2.0.0-alpha.36",
"version": "2.0.0-alpha.51",
"description": "wya for vue components",
"main": "lib/index.js",
"files": [
Expand Down
6 changes: 3 additions & 3 deletions sfc.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ process.on('beforeExit', async () => {
replacement: 'vue/dist/vue.esm.js'
}]
}),
nodeResolve(),
nodeResolve({ browser: true }),
commonjs({}),
replace({
'__VC_VERSION__': process.env.VERSION || require('./package.json').version,
Expand Down Expand Up @@ -228,7 +228,7 @@ process.on('beforeExit', async () => {
return new RegExp(`(${regex})`).test(filename);
},
plugins: [
nodeResolve(),
nodeResolve({ browser: true }),
commonjs({}),
replace({
'__VC_VERSION__': process.env.VERSION || require('./package.json').version,
Expand Down Expand Up @@ -266,7 +266,7 @@ process.on('beforeExit', async () => {
return new RegExp(`(${regex})`).test(filename);
},
plugins: [
nodeResolve(),
nodeResolve({ browser: true }),
commonjs({}),
replace({
'__VC_VERSION__': process.env.VERSION || require('./package.json').version,
Expand Down

0 comments on commit 4106d94

Please sign in to comment.