Browse Source

build: 去掉babel/polyfill

qufenxi
alan 5 years ago
parent
commit
14e9fddf77
  1. 1
      package.json
  2. 4
      webpack/webpack.dev.js
  3. 2
      webpack/webpack.prod.js

1
package.json

@ -19,7 +19,6 @@
"@babel/core": "7.4.5", "@babel/core": "7.4.5",
"@babel/plugin-proposal-class-properties": "^7.5.0", "@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-proposal-decorators": "7.4.4", "@babel/plugin-proposal-decorators": "7.4.4",
"@babel/polyfill": "7.4.4",
"@babel/preset-env": "7.4.5", "@babel/preset-env": "7.4.5",
"@babel/preset-typescript": "7.3.3", "@babel/preset-typescript": "7.3.3",
"@types/jest": "24.0.11", "@types/jest": "24.0.11",

4
webpack/webpack.dev.js

@ -36,7 +36,7 @@ chokidar
module.exports = merge(common, { module.exports = merge(common, {
devtool: 'eval-source-map', devtool: 'eval-source-map',
entry: { entry: {
show: ['@babel/polyfill', './src/i18n.ts', './src/index.ts'], show: ['./src/i18n.ts', './src/index.ts'],
}, },
output: { output: {
path: dirs.DEST, path: dirs.DEST,
@ -48,7 +48,7 @@ module.exports = merge(common, {
liveReload: true, liveReload: true,
proxy: { proxy: {
'/webroot/decision/v10': { '/webroot/decision/v10': {
target: 'http://localhost:8075', target: 'http://api.fanruan.design/mock/135',
secure: false, secure: false,
}, },
'/webroot/decision/resources': { '/webroot/decision/resources': {

2
webpack/webpack.prod.js

@ -12,7 +12,7 @@ module.exports = merge.smart(common, {
devtool: 'hidden-source-map', devtool: 'hidden-source-map',
entry: { entry: {
show: ['@babel/polyfill/noConflict', './src/modules/app.ts'], show: ['./src/modules/app.ts'],
}, },
output: { output: {
path: dirs.DEST, path: dirs.DEST,

Loading…
Cancel
Save