Newman's Personal Motorcade
Have ideas to improve npm?Join in the discussion! »

@haensl/rollup-plugin-local-resolve

1.1.1 • Public • Published

rollup-plugin-local-resolve

NPM

npm version

CircleCI

Rollup plugin to resolve relative imports from local folders without stating the index file. E.g.

import something from '../some-dir'.

Quick start

  1. Install the plugin
npm i -D @haensl/rollup-plugin-local-resolve
  1. Use it in your rollup.config.js
import localResolve from '@haensl/rollup-plugin-local-resolve';
 
export default {
  input: 'src/index.js',
  plugins: [
    localResolve()
  ],
  output: [
    {
      file: 'dist/index.cjs.js',
      format: 'cjs'
    },
    {
      file: 'dist/index.es.js',
      format: 'es'
    }
  ]
}

Credits

Changelog

License

Install

npm i @haensl/rollup-plugin-local-resolve

DownloadsWeekly Downloads

11

Version

1.1.1

License

MIT

Unpacked Size

11.6 kB

Total Files

10

Last publish

Collaborators

  • avatar