We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/tleunen/babel-plugin-module-resolver is a fairly widely used babel plugin, which allows for aliases and root folders. E.g. with the following in .babelrc:
.babelrc
{ "plugins": [ ["module-resolver", { "root": ["./src"], "alias": { "test": "./test", "underscore": "lodash" } }] ] }
you can write
import { throttle } from 'underscore'; import { MockBar } from 'test'; import Foo from 'components/Foo';
instead of
import { throttle } from 'lodash'; import { MockBar } from '../../test'; import Foo from '../../src/components/Foo';
It'd be nice if import-js picked up on this and its output was in line with it.
import-js
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/tleunen/babel-plugin-module-resolver is a fairly widely used babel plugin, which allows for aliases and root folders. E.g. with the following in
.babelrc
:you can write
instead of
It'd be nice if
import-js
picked up on this and its output was in line with it.The text was updated successfully, but these errors were encountered: