There are some nuances of the root option that are not explained in the README, or even the docs, for instance:
In addition, none of the docs actually explain what this plugin does behind the scenes, nor do they provide a means to troubleshoot. Just saying, a lot of developers want aliases, but may not realize how much this plugin really affects their builds (πββοΈ me).
There are some nuances of the
rootoption that are not explained in the README, or even the docs, for instance:{ "plugins": [ ["module-resolver", { "root": ["./src"], // setting this to `./` worked at first glance, but it broke a lot of things in my app "alias": { "test": "./test", // it's not clear whether this is relative to the `root` specified above (it's not, UNLIKE tsconfig.json) "underscore": "lodash" } }] ] }In addition, none of the docs actually explain what this plugin does behind the scenes, nor do they provide a means to troubleshoot. Just saying, a lot of developers want aliases, but may not realize how much this plugin really affects their builds (πββοΈ me).