Explorar el Código

temp fix: roadhog test failed with alias set

ddcat1115 hace 7 años
padre
commit
420b297630
Se han modificado 2 ficheros con 13 adiciones y 0 borrados
  1. 12 0
      .babelrc.js
  2. 1 0
      package.json

+ 12 - 0
.babelrc.js

@@ -0,0 +1,12 @@
+module.exports = {
+  plugins: [
+    [
+      'babel-plugin-module-resolver',
+      {
+        alias: {
+          components: './src/components',
+        },
+      },
+    ],
+  ],
+};

+ 1 - 0
package.json

@@ -51,6 +51,7 @@
     "babel-eslint": "^8.1.2",
     "babel-plugin-dva-hmr": "^0.4.1",
     "babel-plugin-import": "^1.6.7",
+    "babel-plugin-module-resolver": "^3.1.1",
     "babel-plugin-transform-decorators-legacy": "^1.3.4",
     "cross-env": "^5.1.1",
     "cross-port-killer": "^1.0.1",