Socket
Socket
Sign inDemoInstall

vite-plugin-external-modules

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vite-plugin-external-modules

A plugin to import local folders dependencies with hot reloading during development


Version published
Weekly downloads
17
decreased by-76.39%
Maintainers
1
Install size
1.97 kB
Created
Weekly downloads
 

Readme

Source

vite-plugin-external-module

import relative packages into your dev your vite application while developing.

Usage:

Add as a plugin as:

createExternalDependencies({
  externals: {
    'my-lib': '../my-lib'
  },
})

This will override the same dependency in your package.json in dev.

You can whitelist vite modes for which it should use the local package instead of the package.json

createExternalDependencies({
  externals: {
    'my-lib': '../my-lib'
  },
  whiteListModes: [
    'development',
    'dev-stage',
  ],
})

Keywords

FAQs

Last updated on 08 Feb 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc