Browse Source

chore: update to babel 7

pull/2475/head
Yoshiya Hinosawa 6 years ago
parent
commit
dffc724f59
  1. 2
      karma.conf.js
  2. 6537
      package-lock.json
  3. 11
      package.json
  4. 7
      rollup.config.js

2
karma.conf.js

@ -13,7 +13,7 @@ module.exports = function(config) {
}, },
browserify: { browserify: {
debug: true, debug: true,
transform: [['babelify', { presets: ['env'], plugins: ['istanbul'] }]] transform: [['babelify', { presets: ['@babel/preset-env'], plugins: ['istanbul'] }]]
}, },
reporters: ['spec', 'coverage-istanbul'], reporters: ['spec', 'coverage-istanbul'],
coverageIstanbulReporter: { coverageIstanbulReporter: {

6537
package-lock.json generated

File diff suppressed because it is too large Load Diff

11
package.json

@ -54,17 +54,16 @@
"d3": "^5.0.0" "d3": "^5.0.0"
}, },
"devDependencies": { "devDependencies": {
"babel-core": "^6.26.0", "@babel/core": "^7.0.0",
"babel-plugin-external-helpers": "^6.22.0", "@babel/preset-env": "^7.0.0",
"babel-plugin-istanbul": "^4.1.6", "babel-plugin-istanbul": "^5.0.1",
"babel-preset-env": "^1.7.0",
"babelify": "^10.0.0", "babelify": "^10.0.0",
"browserify": "^16.1.1", "browserify": "^16.1.1",
"clean-css-cli": "^4.1.11", "clean-css-cli": "^4.1.11",
"codecov": "^3.0.4", "codecov": "^3.0.4",
"gh-pages": "^1.2.0", "gh-pages": "^1.2.0",
"jasmine-core": "^2.3.4", "jasmine-core": "^2.3.4",
"jshint": "^2.9.6", "jshint": "2.9.6",
"jshint-stylish": "^2.1.0", "jshint-stylish": "^2.1.0",
"karma": "^3.0.0", "karma": "^3.0.0",
"karma-browserify": "^5.3.0", "karma-browserify": "^5.3.0",
@ -76,7 +75,7 @@
"nodemon": "^1.18.3", "nodemon": "^1.18.3",
"npm-run-all": "^4.1.3", "npm-run-all": "^4.1.3",
"rollup": "^0.65.0", "rollup": "^0.65.0",
"rollup-plugin-babel": "^3.0.3", "rollup-plugin-babel": "^4.0.3",
"sass": "^1.10.3", "sass": "^1.10.3",
"status-back": "^1.1.0", "status-back": "^1.1.0",
"uglify-js": "^3.3.17", "uglify-js": "^3.3.17",

7
rollup.config.js

@ -13,12 +13,9 @@ export default {
} }
}, },
plugins: [babel({ plugins: [babel({
presets: [['env', { presets: [['@babel/preset-env', {
modules: false modules: false
}]], }]]
plugins: [
'external-helpers'
]
})], })],
external: ['d3'], external: ['d3'],
}; };

Loading…
Cancel
Save