Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@haensl/rollup-plugin-local-resolve

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haensl/rollup-plugin-local-resolve

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

  • 1.1.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 07 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc