Skip to content

Commit

Permalink
fix: invalid bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
黄健 authored and 黄健 committed Dec 18, 2017
1 parent 66e4138 commit 4c82148
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ rules:
arrow-parens:
- error
- always

comma-dangle:
- error
- objects: never
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "echarts-bridge",
"version": "0.5.0",
"version": "0.5.0-alpha.1",
"description": "echarts imperative programming bridge in MV* frontend framework.",
"main": "bundle/bridge.common.js",
"jsnext:main": "bundle/bridge.esm.js",
"main": "bundle/echarts-bridge.common.js",
"jsnext:main": "bundle/echarts-bridge.esm.js",
"files": [
"bundle"
],
Expand Down
4 changes: 1 addition & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ module.exports = {
runtimeHelpers: true
})
],
external: (id) => {
return ['echarts', 'babel-runtime'].some((name) => id.startsWith(name));
},
external: (id) => ['echarts', 'babel-runtime'].some((name) => id.startsWith(name)),
output: [
{ file: 'bundle/echarts-bridge.common.js', format: 'cjs' },
{ file: 'bundle/echarts-bridge.esm.js', format: 'es' }
Expand Down
2 changes: 1 addition & 1 deletion src/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Proxy {
this.restoreBufferVariable();
this.lazyMethodList = [
'getWidth', 'getHeight', 'getDom', 'getOption', 'getDataURL', 'getConnectedDataURL',
'convertToPixel', 'convertFromPixel', 'containPixel', 'isDisposed', 'dispatchAction',
'convertToPixel', 'convertFromPixel', 'containPixel', 'isDisposed', 'dispatchAction'
];
}

Expand Down

0 comments on commit 4c82148

Please sign in to comment.