babel-plugin-module-resolver
babel-plugin-module-resolver copied to clipboard
Custom module resolver plugin for Babel
my config: ``` [ "babel-plugin-module-resolver", { "root": ["./src"], "alias": { "components": "./components", "constants": "./constants", "containers": "./containers", "layout": "./layout", "models": "./models", "modules": "./modules", "routes": "./routes", "static": "./static", "store": "./store", "types": "./types",...
I am trying to get this to work properly in our monorepo setup. Here is the project structure: ``` - packageA \ - package.json - packageB \ - package.json -...
is there a way to apply multiple aliases, e.g. ``` [ 'module-resolver', { alias: { '^lazy!(.*)': '\\1', bundles: './static/bundles', }, }, ], ``` I would like `lazy!bundles/some/file` to resolve to...
Hi @tleunen ! My name is Serhii Palash. I would like to commit in your repository a functionality of `transforms-imports` plugin https://www.npmjs.com/package/babel-plugin-transform-imports. Let me explain why. In our project we...
Is there any options that can control whether to remove trailing '/index' in path ? `import a from 'packages/a/index'`
Currently relative paths are always ignored, so extensions can't be resolved for relative paths. This change adds support for resolving relative paths.
I`m using version 3.2.0 of this module. when I import a file like this in the code ``` import { something } from '.'; ``` the app itself works but...
👋 The user @sospedra marked this repo in **need for maintainers**. ✅ If you're **looking for collaborators** no action is required 👮🏻♂️ If this repo it's **well-supported please put a...
Hi, I have configured .babel.config.js in the React - Native. It is working. But I do not know it is not refreshing the changes. I tried npm clear cache many...
Hello everyone, I'm coding a typescript project that depends on private typescript dependencies. My first step was to find a way to have the power of typescript completion on vscode....