New:Socket for Asana Is Now Available.Learn more
Get Started

@deepseek-ai/cordis-plugin-hmr

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deepseek-ai/cordis-plugin-hmr

Hot Module Replacement Plugin for Cordis

latest
Source
npmnpm
Version
1.0.17
Version published
Maintainers
2
Created
Source

@cordisjs/plugin-hmr

Hot module replacement for loader-managed Cordis plugins.

The HMR plugin watches source files, traces Node's module graph, clears affected module caches, and reloads only the plugin entries that depend on changed application files. Changes to framework-level dependencies fall back to loader.exit(), letting the host process restart.

Module watches canonicalize their existing base directory before opening Chokidar. Exact config watches likewise canonicalize the deepest existing ancestor, then restore any missing suffix. Callbacks and diagnostics retain the requested absolute filename, while the native backend receives one filesystem spelling even when Windows supplied an 8.3 alias.

Requirements

  • @cordisjs/plugin-loader
  • @cordisjs/plugin-timer
  • A runtime that exposes Node's internal module loader. The package throws if the loader service has no internal module loader available.

Usage

- id: timer
  name: '@cordisjs/plugin-timer'
- id: hmr
  name: '@cordisjs/plugin-hmr'
  config:
    root:
      - src
    ignored:
      - '**/node_modules'
      - '**/.*'
    debounce: 100

Config

FieldDescription
baseOptional base directory resolved from ctx.baseUrl.
rootChokidar roots to watch. Defaults to ['.'].
ignoredPicomatch patterns excluded from watch and reload analysis.
debounceMilliseconds to wait before processing a burst of changes.

Events

EventDescription
hmr/changeEmitted for changed files that are not handled by plugin reload or config reload.
hmr/reloadEmitted after one or more plugin entries are reloaded.

FAQs

Package last updated on 30 Aug 2026

Related posts