Skip to content

Commit

Permalink
Upgrade babel7
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 15, 2019
1 parent 9f89a16 commit aff915a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
const babelrc = {
"presets": [
[
"env", {
"@babel/preset-env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}
],
"react"
"@babel/preset-react"
],
"plugins": [
"transform-object-rest-spread",
"syntax-dynamic-import",
"transform-async-to-generator",
"transform-class-properties",
"transform-runtime"
"@babel/plugin-syntax-object-rest-spread",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-runtime"
],
"env": {
"production": {}
Expand Down
40 changes: 21 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdoc",
"version": "1.10.8",
"version": "1.10.9",
"description": "Blazing-fast static site generator for React, Just write Markdown file.",
"homepage": "https://react-doc.github.io",
"bin": {
Expand All @@ -19,25 +19,27 @@
},
"keywords": [
"rdoc",
"react",
"react-doc"
],
"author": "Kenny Wang",
"license": "MIT",
"dependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"@babel/plugin-transform-async-to-generator": "^7.3.4",
"@babel/plugin-transform-runtime": "^7.3.4",
"@babel/polyfill": "^7.2.5",
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.3.4",
"@nuxtjs/friendly-errors-webpack-plugin": "2.0.2",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.3",
"babel-loader": "7.1.4",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.6.1",
"babel-preset-react": "6.24.1",
"classnames": "2.2.5",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"classnames": "^2.2.6",
"colors-cli": "1.0.13",
"commander": "2.12.2",
"copy-markdown-image-webpack-plugin": "2.0.0",
Expand Down Expand Up @@ -69,10 +71,10 @@
"raw-content-replace-loader": "1.0.1",
"raw-extend-loader": "1.0.5",
"raw-tree-replace-loader": "1.1.0",
"react": "16.3.2",
"react": "^16.8.4",
"react-document-title": "2.0.3",
"react-dom": "16.3.2",
"react-dynamic-loadable": "1.0.8",
"react-dom": "^16.8.4",
"react-dynamic-loadable": "^1.1.2",
"react-hot-loader": "4.1.1",
"react-markdown": "3.3.0",
"react-router-dom": "4.2.2",
Expand All @@ -85,12 +87,12 @@
"webpack": "4.10.2",
"webpack-cli": "3.0.1",
"webpack-dev-middleware": "3.1.3",
"webpack-dev-server": "3.1.4",
"webpack-dev-server": "3.1.14",
"webpack-hot-dev-clients": "1.0.4",
"webpackbar": "2.6.1",
"write": "1.0.3"
},
"devDependencies": {
"release-it": "7.4.7"
"release-it": "10.1.0"
}
}
4 changes: 3 additions & 1 deletion src/web/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable import/no-named-as-default-member */
import React from 'react';
import ReactDOM from 'react-dom';
import 'babel-polyfill';
import '@babel/polyfill';
// eslint-disable-next-line import/no-named-as-default
import RouterRoot from './Router';

ReactDOM.render(
Expand Down

0 comments on commit aff915a

Please sign in to comment.