babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

Custom module resolver plugin for Babel

Results 109 babel-plugin-module-resolver issues
Sort by recently updated
recently updated
newest added

I'm trying to use the plugin for css, graphql file mocks in order to run nodejs on tests. It seems it should work as it specified in the description: >...

maybe it'll be a good idea to create a babel macros for this module resolver? i read at announcement that CRA start to support babel macros and this can be...

Babel resolver does not work in my next.js project My .babelrc file ``` { "presets": ["next/babel"], "plugins": [ [ "module-resolver", { "root": ["./"], "alias": { "@components": "./src/components", } } ],...

Bellowing is my original code sample: ``` const ProxyInboxModel = proxyquire('../model.js', { 'messages': { ... } }).default ``` It didn't work as 'messages' is not resolved by module-resolver, after reading...

I have a directory structure as follows: ``` src/some/directory ├── SomeModule.js └── index.js ``` And I have a `main` field specified in my package.json: `"main": "src/main.js"`. If I have a...

Hi guys, I am not sure this module should still be used: until now, I have been using the aliases in WebPack, and that module might just simply do exactly...

How do I avoid applying the path mapping to the files inside node_modules? If, by coincidence, you pick an alias that resembles one of the imports used inside a third-party...

I am hoping I can change an alias so that my theme directory changes. Apologies if this is not the right place for this type of questions.

I couldn't make the `root` option work. Here is my project structure. ``` ROOT > cloudRun > distApp // TRANSPILED APP FILES FROM ./src > distService // TRANSPILED BACKEND FILES...

hello, this is my config (package.json) ``` "plugins": [ [ "module-resolver", { "cwd": "packagejson", "alias": { "@nav": "./src/navigation", "underscore": "lodash", "@store": "./src/store" } } ] ] ``` when I use...