提交 28b0522f authored 作者: vipcxj's avatar vipcxj

fix: dup React import and some dep update.

上级 cb61ac5d
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"sideEffects": ["src/polyfill.js"], "sideEffects": ["src/polyfill.js"],
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.0.0", "@babel/polyfill": "^7.0.0",
"@babel/runtime": "^7.0.0", "@babel/runtime": "^7.1.2",
"antd": "^3.9.2", "antd": "^3.9.2",
"axo": "^0.0.2", "axo": "^0.0.2",
"bowser": "^1.9.4", "bowser": "^1.9.4",
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
"xml2js": "^0.4.19" "xml2js": "^0.4.19"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.1.0", "@babel/core": "^7.1.2",
"@babel/helper-plugin-utils": "^7.0.0", "@babel/helper-plugin-utils": "^7.0.0",
"@babel/plugin-proposal-async-generator-functions": "^7.1.0", "@babel/plugin-proposal-async-generator-functions": "^7.1.0",
"@babel/plugin-proposal-class-properties": "^7.1.0", "@babel/plugin-proposal-class-properties": "^7.1.0",
...@@ -71,27 +71,26 @@ ...@@ -71,27 +71,26 @@
"@babel/preset-env": "^7.1.0", "@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0", "@babel/register": "^7.0.0",
"@storybook/addon-actions": "^4.0.0-alpha.21", "@storybook/addon-actions": "4.0.0",
"@storybook/addon-info": "^4.0.0-alpha.21", "@storybook/addon-info": "4.0.0",
"@storybook/addon-links": "^4.0.0-alpha.21", "@storybook/addon-links": "4.0.0",
"@storybook/react": "^4.0.0-alpha.21", "@storybook/react": "4.0.0",
"@types/webpack": "^4.4.11", "@types/webpack": "^4.4.17",
"autoprefixer": "^9.1.5", "autoprefixer": "^9.1.5",
"awesome-typescript-loader": "^5.2.1", "awesome-typescript-loader": "^5.2.1",
"babel-core": "^7.0.0-bridge.0", "babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^9.0.0", "babel-eslint": "^9.0.0",
"babel-loader": "^8.0.2", "babel-loader": "^8.0.4",
"babel-plugin-dev-expression": "^0.2.1", "babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-dva-hmr": "^0.4.1", "babel-plugin-dva-hmr": "^0.4.1",
"babel-plugin-import": "^1.9.1", "babel-plugin-import": "^1.11.0",
"babel-plugin-lodash": "^3.3.4", "babel-plugin-lodash": "^3.3.4",
"babel-plugin-react-require": "^3.0.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.19",
"babel-plugin-transform-react-remove-prop-types": "^0.4.15", "cache-loader": "1.2.2",
"cache-loader": "^1.2.2",
"case-sensitive-paths-webpack-plugin": "^2.1.2", "case-sensitive-paths-webpack-plugin": "^2.1.2",
"chai": "^4.1.2", "chai": "^4.1.2",
"clean-webpack-plugin": "^0.1.19", "clean-webpack-plugin": "^0.1.19",
"copy-webpack-plugin": "^4.5.2", "copy-webpack-plugin": "^4.5.4",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"ejs-loader": "^0.3.1", "ejs-loader": "^0.3.1",
"enzyme": "^3.3.0", "enzyme": "^3.3.0",
...@@ -121,13 +120,13 @@ ...@@ -121,13 +120,13 @@
"react-dev-utils": "^5.0.2", "react-dev-utils": "^5.0.2",
"react-test-renderer": "^16.5.0", "react-test-renderer": "^16.5.0",
"redbox-react": "^1.6.0", "redbox-react": "^1.6.0",
"style-loader": "^0.23.0", "style-loader": "^0.23.1",
"uglifyjs-webpack-plugin": "^1.3.0", "uglifyjs-webpack-plugin": "^1.3.0",
"url-loader": "^1.1.1", "url-loader": "^1.1.1",
"webpack": "^4.19.1", "webpack": "^4.23.1",
"webpack-bundle-analyzer": "^3.0.2", "webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^3.1.0", "webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.8", "webpack-dev-server": "^3.1.10",
"webpack-manifest-plugin": "^2.0.4", "webpack-manifest-plugin": "^2.0.4",
"webpack-merge": "^4.1.4" "webpack-merge": "^4.1.4"
} }
......
const { declare } = require('@babel/helper-plugin-utils'); const { declare } = require('@babel/helper-plugin-utils');
const plugins = [ const plugins = [
'babel-plugin-react-require', // 'babel-plugin-react-require',
'@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-object-rest-spread', '@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-optional-catch-binding', '@babel/plugin-proposal-optional-catch-binding',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论