Переглянути джерело

rm babel-plugin-dynamic-import-node

Pan 7 роки тому
батько
коміт
15edbf08be
2 змінених файлів з 2 додано та 9 видалено
  1. 1 6
      .babelrc
  2. 1 3
      package.json

+ 1 - 6
.babelrc

@@ -8,10 +8,5 @@
8 8
     }],
9 9
     "stage-2"
10 10
   ],
11
-  "plugins":["transform-vue-jsx", "transform-runtime"],
12
-  "env": {
13
-    "development":{
14
-      "plugins": ["dynamic-import-node"]
15
-    }
16
-  }
11
+  "plugins":["transform-vue-jsx", "transform-runtime"]
17 12
 }

+ 1 - 3
package.json

@@ -5,7 +5,7 @@
5 5
   "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
6 6
   "author": "Pan <panfree23@gmail.com>",
7 7
   "scripts": {
8
-    "dev": "cross-env BABEL_ENV=development webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
8
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9 9
     "start": "npm run dev",
10 10
     "build": "node build/build.js",
11 11
     "build:report": "npm_config_report=true node build/build.js",
@@ -28,7 +28,6 @@
28 28
     "babel-eslint": "8.0.3",
29 29
     "babel-helper-vue-jsx-merge-props": "2.0.3",
30 30
     "babel-loader": "7.1.2",
31
-    "babel-plugin-dynamic-import-node": "1.2.0",
32 31
     "babel-plugin-syntax-jsx": "6.18.0",
33 32
     "babel-plugin-transform-runtime": "6.23.0",
34 33
     "babel-plugin-transform-vue-jsx": "3.5.0",
@@ -36,7 +35,6 @@
36 35
     "babel-preset-stage-2": "6.24.1",
37 36
     "chalk": "2.3.0",
38 37
     "copy-webpack-plugin": "4.2.3",
39
-    "cross-env": "5.1.1",
40 38
     "css-loader": "0.28.7",
41 39
     "eslint": "4.13.1",
42 40
     "eslint-friendly-formatter": "3.0.0",