Detalhes do pacote

@haensl/rollup-plugin-local-resolve

haensl31MIT1.1.12

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

rollup, plugin, rollup-plugin, resolve

readme (leia-me)

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

changelog (log de mudanças)

1.1.12

1.1.11

1.1.10

1.1.9

1.1.8

1.1.7

1.1.6

1.1.5

1.1.4

1.1.3

1.1.1

1.1.1

  • Fix Github release artefact file name.

1.1.0

1.0.8

1.0.7

1.0.6

1.0.5

  • Fix a bug that causes resolving conflicts with other plugins.

1.0.4

  • Fix a bug that causes resolving conflicts with other plugins.

1.0.3

  • Use latest node version when releasing.

1.0.2

  • Skip cleaning up build artefacts at Travis.

1.0.1

  • Add prepare step before publishing.

1.0.0