featurehelp wanted
描述
There would be great to have support for .babelrc aliases.
In my case I have:
"plugins": [
["module-alias", [
{ "src": "./app/components", "expose": "@components" },
{ "src": "./app/constants", "expose": "@constants" },
{ "src": "./app/actions", "expose": "@actions" },
{ "src": "./app/api", "expose": "@api" },
{ "src": "./app/helpers", "expose": "@helpers" },
{ "src": "./app/modules", "expose": "@modules" },
{ "src": "./config", "expose": "@config" },
{ "src": "./server", "expose": "@server" },
{ "src": "./app/routes", "expose": "@routes"}
]]
],
and using with import Modal from '@components/Modal' or const Modal = require('@components/Modal')
Thanks guys!