README
babel-plugin-module-paths-resolver
A plugin to resolve tsconfig paths for babel!
Install
$ yarn add babel-plugin-module-paths-resolver
Usage
Specify the plugin in your .babelrc
with the custom alias and calls witch will be transform.
{
"plugins": [
["module-paths-resolver", {
"calls": [
"jest.genMockFromModule",
"jest.mock",
"jest.unmock",
"jest.doMock",
"jest.dontMock",
"jest.setMock",
"jest.requireActual",
"jest.requireMock",
],
"alias": {
"vue": "vue/dist/vue.production.js",
"react