Browse Source

temp fix: roadhog test failed with alias set

pull/1132/merge 1.2.0
ddcat1115 8 years ago
parent
commit
420b297630
  1. 12
      .babelrc.js
  2. 1
      package.json

12
.babelrc.js

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

1
package.json

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

Loading…
Cancel
Save