babel-plugin-app-require
v1.1.0
Published
Allows requires relative to `$(pwd)/src`.
Downloads
13
Readme
Allows requires relative to $(pwd)/src
by preceding them with an @
.
// in src/a/b/c/d/e.js
// Before:
import bar from '../../../../../foo/bar';
// After:
import bar from '@foo/bar';
Note: despite the name, only works for import
.