1.1.0 • Published 7 years ago
babel-plugin-app-require v1.1.0
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
.