0.0.16 • Published 2 months ago

@macropygia/vite-plugin-importer-invalidator v0.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@macropygia/vite-plugin-importer-invalidator

npm version MIT TypeScript Vite

English | 日本語

Vite plugin to invalidate the importers of the target file when the file is modified.

  • This package is currently unstable.
    • Breaking changes may occur without any notice, even if in patch releases.
    • See CHANGELOG for changes.
  • This package only works as ESM.
    • "type": "module" is required in the package.json of the project using this plugin.
  • Works on dev server
  • The module of the target file must have its importers.
    • The module here means the module in HMR of Vite.

Usage

// vite.config.js
import { defineConfig } from 'vite'
import vitePluginImporterInvalidator from '@macropygia/vite-plugin-importer-invalidator'

export default defineConfig({
  plugins: [
    vitePluginImporterInvalidator({
      include: '**/_*.scss',
    }),
  ],
})

Options

ParameterTypeDefaultRequired
includestring \| string[]Yes
excludestring \| string[]No

include, exlude

0.0.16

2 months ago

0.0.15

1 year ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago