babel-plugin-app-require

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-app-require

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • greenjello