0.0.17 • Published 1 year ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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.17

1 year ago

0.0.16

1 year ago

0.0.15

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago