rollup-plugin-absolute-import
v1.0.0
Published
Zero-dependency package that allows to import names absolutely, handles index files too
Downloads
3
Readme
Package that ease you into file resolution in rollup bundler!
Usage:
import absoluteImport from 'rollup-plugin-absolute-import';
/* ... */
plugins: [
/* ... */
absoluteImport('src'),
]
absoluteImport
options:
- base dir, current dirrectory by default
- extentions,
['.ts', '.tsx', '.js', '.jsx', '.d.ts']
by default