vite-plugin-external-modules
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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',
  ],
})

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-external-modules

Weekly Downloads

128

Version

1.0.0

License

ISC

Unpacked Size

2.01 kB

Total Files

4

Last publish

Collaborators

  • axenu