New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rollup-plugin-searchpaths

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-searchpaths

Search paths for Rollup

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

rollup-plugin-searchpaths

A Rollup plugin to add additional search paths for imports.

Overview

Any imports from files that don't start with '.' or '/' will be searched for in the provided list of paths.

Install

Using npm:

npm install rollup-plugin-searchpaths

Usage

In your rollup.config.js :

import searchpaths from 'rollup-plugin-searchpaths'

export default {
    ...
    plugins: [
        searchpaths({
            paths: ['app/', '../common/'],
            extensions: ['ts', 'js', 'jsx'],
        }),
    ],
}

Options

paths

Type: string[] Default: []

A list of paths to search for packages.

The list will be normalised and resolved relative to the current path.

extensions

Type: string[] Default ['js']

A list of file extensions to look for, in order of priority, when an import doesn't specify one.

Keywords

rollup

FAQs

Package last updated on 08 Aug 2020

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