Skip to content

Commit

Permalink
修改:object-assign处理方式
Browse files Browse the repository at this point in the history
  • Loading branch information
quietcoder committed Sep 14, 2017
1 parent c645376 commit b650992
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 45 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"es2015": { "modules": false }
}],
"stage-2"
]
],
"plugins": ["transform-object-assign"]
}
2 changes: 1 addition & 1 deletion docs/v-charts.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"babel-eslint": "7.1.1",
"babel-loader": "6.4.1",
"babel-plugin-external-helpers": "6.22.0",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-polyfill": "^6.23.0",
"babel-preset-latest": "6.24.0",
"babel-preset-stage-2": "6.22.0",
Expand Down
1 change: 0 additions & 1 deletion src/echarts-base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import echarts from 'echarts/lib/echarts'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/legend'
import './object-assign.js'

echarts.registerTheme('ve-chart', {
categoryAxis: {
Expand Down
20 changes: 0 additions & 20 deletions src/object-assign.js

This file was deleted.

1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-undef */
import Vue from 'vue'
import chartData from '../examples/test-data/index.js'
import 'echarts/lib/component/tooltip'
Expand Down
1 change: 0 additions & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module.exports = function (config) {
config.set({
frameworks: ['jasmine'],
files: [
'./polyfill.js',
'./index.js'
],
browsers: ['PhantomJS'],
Expand Down
21 changes: 0 additions & 21 deletions test/polyfill.js

This file was deleted.

6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,12 @@ babel-plugin-transform-exponentiation-operator@^6.22.0:
babel-plugin-syntax-exponentiation-operator "^6.8.0"
babel-runtime "^6.22.0"

babel-plugin-transform-object-assign@^6.22.0:
version "6.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-assign/-/babel-plugin-transform-object-assign-6.22.0.tgz#f99d2f66f1a0b0d498e346c5359684740caa20ba"
dependencies:
babel-runtime "^6.22.0"

babel-plugin-transform-object-rest-spread@^6.22.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.23.0.tgz#875d6bc9be761c58a2ae3feee5dc4895d8c7f921"
Expand Down

0 comments on commit b650992

Please sign in to comment.