Plugins and extensions

suggest change

A plugin system lets other people add features to your program without changing its source code. Webpack, Vite, Rollup, ESLint, Babel, Fastify, Express middleware and the TypeScript language service are all built around one.

In Node.js a plugin is almost always just a module. The host program finds it, imports it, checks that it looks right and gives it an API to call. Most of the work is in the details: where plugins come from, how they hook into the host, in what order they run, how they clean up and what happens when one of them is broken.

Task Node.js tool
Load a plugin from a path import(pathToFileURL(file).href)
Load a plugin by package name createRequire(projectPackageJson).resolve(name)
Survive broken plugins Promise.allSettled() and try/catch around setup()
Let plugins react or transform hooks: run, waterfall, first-result
Let plugins wrap a request middleware with next()
Plugin options factory function: plugin(options) returns a plugin object
Ordering and cleanup dependency sort, teardown in reverse, Symbol.asyncDispose
Untrusted or buggy plugins worker thread or child process with --permission

The examples were run with Node.js 24. All files are ES modules (.mjs).

The plugin contract

Before writing any loading code, decide what a plugin is. The simplest useful contract is an object with a name and a setup function that receives the host's API:

// plugins/upper.mjs
export default {
  name: 'upper',
  setup(app) {
    app.addCommand('upper', (text) => text.toUpperCase());
  },
};
// plugins/reverse.mjs
export default {
  name: 'reverse',
  setup(app) {
    app.addCommand('reverse', (text) => [...text].reverse().join(''));
  },
};

The plugin doesn't import anything from the host. Everything it can do comes through the app argument. That keeps plugins decoupled from the host's internals and lets you change those internals without breaking plugins, as long as the app object stays compatible.

Loading plugins from a directory

The host lists a directory and imports each file with dynamic import():

// host.mjs
import { readdir } from 'node:fs/promises';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

const commands = new Map();
const app = {
  addCommand(name, fn) {
    if (commands.has(name)) throw new Error(`command ${name} already defined`);
    commands.set(name, fn);
  },
};

const dir = path.join(import.meta.dirname, 'plugins');
const files = (await readdir(dir)).filter((f) => f.endsWith('.mjs')).sort();

for (const file of files) {
  const url = pathToFileURL(path.join(dir, file)).href;
  const { default: plugin } = await import(url);
  plugin.setup(app);
  console.log(`loaded ${plugin.name} from ${file}`);
}

for (const [name, fn] of commands) {
  console.log(name, '->', fn('Hello plugins'));
}
loaded reverse from reverse.mjs
loaded upper from upper.mjs
reverse -> snigulp olleH
upper -> HELLO PLUGINS

A few details matter here:

try {
  await import('C:/plugins/upper.mjs');
} catch (err) {
  console.log(err.code);
}
ERR_UNSUPPORTED_ESM_URL_SCHEME

Node.js reads C: as a URL scheme. Code that builds plugin URLs with string concatenation usually works on Linux and macOS and breaks on Windows.

CommonJS plugins load with the same import(): their module.exports arrives as default.

Loading plugins installed from npm

Plugins distributed as npm packages usually follow a naming convention: eslint-plugin-*, babel-plugin-*, vite-plugin-*, or the scoped form @scope/eslint-plugin-*. The host reads the user's package.json and picks dependencies that match.

Given this project:

project/
  package.json
  node_modules/
    @acme/myapp-plugin-shout/   (package.json, index.js)
    myapp-plugin-stats/         (package.json, index.js)
    left-pad/
{
  "name": "my-project",
  "dependencies": {
    "@acme/myapp-plugin-shout": "^1.0.0",
    "left-pad": "^1.3.0",
    "myapp-plugin-stats": "^2.1.0"
  }
}

the loader looks like this:

// find-plugins.mjs
import { readFile } from 'node:fs/promises';
import { createRequire } from 'node:module';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

const PLUGIN_NAME = /^(@[^/]+\/)?myapp-plugin-/;

export async function loadInstalledPlugins(projectDir) {
  const pkgPath = path.join(projectDir, 'package.json');
  const pkg = JSON.parse(await readFile(pkgPath, 'utf8'));
  const names = Object.keys({ ...pkg.dependencies, ...pkg.devDependencies })
    .filter((name) => PLUGIN_NAME.test(name));

  // resolve from the project, not from the location of this file
  const require = createRequire(pkgPath);
  const plugins = [];
  for (const name of names) {
    const file = require.resolve(name);
    const mod = await import(pathToFileURL(file).href);
    plugins.push({ packageName: name, plugin: mod.default });
  }
  return plugins;
}

const found = await loadInstalledPlugins(path.join(import.meta.dirname, 'project'));
for (const { packageName, plugin } of found) {
  console.log(packageName, '->', plugin.name);
}
@acme/myapp-plugin-shout -> shout
myapp-plugin-stats -> stats

The important line is createRequire(pkgPath). A plain import('myapp-plugin-stats') resolves the package relative to the host's own file. When the host is installed globally, or lives in a different node_modules than the user's project, it won't find the plugin. createRequire() creates a require function that resolves as if it were called from the project's package.json, and require.resolve() returns the absolute file name without loading anything. Then import() loads it, so plugins can be ES modules.

require.resolve() uses the "require" and "default" conditions of the package's exports field. A package that only defines an "import" condition won't resolve this way; ask plugin authors to provide "default".

Reading names from package.json is explicit and fast. Scanning node_modules for matching directories also works, but it picks up transitive dependencies the user never asked for.

Validating plugins

A plugin is code someone else wrote, often against an older version of your API. Check its shape before calling it and produce an error message that names the file:

const API_VERSION = 2;

function validatePlugin(plugin, source) {
  const problems = [];
  if (plugin === null || typeof plugin !== 'object') {
    throw new TypeError(`${source}: default export must be an object`);
  }
  if (typeof plugin.name !== 'string' || plugin.name === '') {
    problems.push('missing "name"');
  }
  if (typeof plugin.setup !== 'function') {
    problems.push('"setup" must be a function');
  }
  const wanted = plugin.apiVersion ?? 1;
  if (wanted !== API_VERSION) {
    problems.push(`needs API v${wanted}, host provides v${API_VERSION}`);
  }
  if (problems.length > 0) {
    throw new TypeError(`${source}: ${problems.join(', ')}`);
  }
  return plugin;
}

const candidates = {
  'good.mjs': { name: 'good', apiVersion: 2, setup() {} },
  'old.mjs': { name: 'old', setup() {} },
  'broken.mjs': { name: '', apiVersion: 2, setup: 'yes' },
  'empty.mjs': undefined,
};

for (const [source, plugin] of Object.entries(candidates)) {
  try {
    validatePlugin(plugin, source);
    console.log(`ok   ${source}`);
  } catch (err) {
    console.log(`skip ${err.message}`);
  }
}
ok   good.mjs
skip old.mjs: needs API v1, host provides v2
skip broken.mjs: missing "name", "setup" must be a function
skip empty.mjs: default export must be an object

An explicit apiVersion is cheap insurance. When you make a breaking change to the host API, bump it, and old plugins fail with a clear message instead of a TypeError deep inside your code. npm packages can also declare peerDependencies on the host package so npm warns at install time.

Surviving broken plugins

A plugin can fail in three places: while being imported (syntax error, missing dependency, exception in top-level code), during setup(), and later while handling work. Decide on a policy for each. For a dev tool, logging and skipping a broken plugin is usually right. For a server, refusing to start may be safer.

// host.mjs
import { readdir } from 'node:fs/promises';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

const dir = path.join(import.meta.dirname, 'plugins');
const files = (await readdir(dir)).filter((f) => f.endsWith('.mjs')).sort();

const results = await Promise.allSettled(
  files.map(async (file) => {
    const mod = await import(pathToFileURL(path.join(dir, file)).href);
    return { file, plugin: mod.default };
  }),
);

const app = {};
const loaded = [];
for (const [i, result] of results.entries()) {
  if (result.status === 'rejected') {
    const err = result.reason;
    console.log(`import failed: ${files[i]}: ${err.code ?? err.name}`);
    continue;
  }
  const { file, plugin } = result.value;
  try {
    await plugin.setup(app);
    loaded.push(plugin.name);
  } catch (err) {
    console.log(`setup failed: ${file}: ${err.message}`);
  }
}
console.log('running with:', loaded);

With four plugins: one valid, one with a syntax error, one that imports a package that isn't installed and one whose setup() throws:

import failed: b-syntax.mjs: SyntaxError
import failed: c-missing-dep.mjs: ERR_MODULE_NOT_FOUND
setup failed: d-crashy.mjs: database not configured
running with: [ 'ok' ]

Promise.allSettled() imports all plugins in parallel and never rejects, so one bad file doesn't hide the others. setup() runs sequentially, in a stable order, and is awaited so plugins can do async initialization.

What try/catch can't protect you from: a plugin that blocks the event loop with an infinite loop, calls process.exit(), or throws from a timer or event handler, which becomes an uncaught exception. For those, see the section on isolating untrusted plugins below.

Hooks

addCommand() above is an extension point: a place where the host asks plugins to contribute. Bigger systems have many, usually called hooks. Three kinds cover most needs:

This is how Rollup and Vite plugin hooks work, and what webpack's tapable library implements. A minimal version:

// hooks.mjs
export class Hook {
  #taps = [];

  tap(pluginName, fn) {
    this.#taps.push({ pluginName, fn });
  }

  // call every handler, ignore results
  async run(...args) {
    for (const { fn } of this.#taps) await fn(...args);
  }

  // each handler gets the previous handler's result
  async waterfall(value, ...args) {
    for (const { pluginName, fn } of this.#taps) {
      const next = await fn(value, ...args);
      if (next === undefined) {
        throw new Error(`plugin ${pluginName} returned undefined`);
      }
      value = next;
    }
    return value;
  }

  // stop at the first handler that returns something
  async first(...args) {
    for (const { fn } of this.#taps) {
      const result = await fn(...args);
      if (result !== undefined) return result;
    }
    return undefined;
  }
}

Recording the plugin name with each handler pays off in error messages: "plugin banner returned undefined" is much more useful than a crash in the next plugin.

A toy bundler using all three kinds:

// build.mjs
import { Hook } from './hooks.mjs';

const hooks = {
  buildStart: new Hook(), // notification
  resolve: new Hook(),    // first plugin that knows wins
  transform: new Hook(),  // each plugin rewrites the source
  buildEnd: new Hook(),
};

const plugins = [
  {
    name: 'virtual',
    setup(h) {
      h.resolve.tap('virtual', (id) =>
        id === 'virtual:version' ? 'export default "1.4.2";' : undefined);
    },
  },
  {
    name: 'strip-comments',
    setup(h) {
      h.transform.tap('strip-comments', (code) => code.replace(/\s*\/\/.*$/gm, '').trim());
    },
  },
  {
    name: 'banner',
    setup(h) {
      h.transform.tap('banner', (code, id) => `/* ${id} */\n${code}`);
    },
  },
  {
    name: 'timer',
    setup(h) {
      let start;
      h.buildStart.tap('timer', () => { start = performance.now(); });
      h.buildEnd.tap('timer', (count) => {
        const ms = performance.now() - start;
        console.log(`built ${count} module(s) in ${ms < 100 ? '<100' : ms.toFixed(0)} ms`);
      });
    },
  },
];

for (const p of plugins) p.setup(hooks);

const files = { 'main.js': 'import v from "virtual:version"; // entry\nconsole.log(v);' };

await hooks.buildStart.run();
const ids = ['main.js', 'virtual:version'];
for (const id of ids) {
  const source = (await hooks.resolve.first(id)) ?? files[id];
  const code = await hooks.transform.waterfall(source, id);
  console.log(code);
}
await hooks.buildEnd.run(ids.length);
/* main.js */
import v from "virtual:version";
console.log(v);
/* virtual:version */
export default "1.4.2";
built 2 module(s) in <100 ms

The virtual plugin supplies a module that doesn't exist on disk, strip-comments and banner each rewrite the code, and timer only observes. Plugin order matters for waterfall hooks: swap strip-comments and banner and the result changes.

Why not just use an EventEmitter? It's fine for notifications, but emit() calls listeners synchronously, ignores their return values and doesn't wait for promises. Waterfall and first-result hooks need return values, and async plugins need to be awaited.

Middleware

When plugins need to wrap an operation, running code both before and after it or stopping it altogether, middleware with a next() function works better than hooks. This is how Koa and Express work:

function compose(middleware) {
  return function run(ctx) {
    let last = -1;
    const dispatch = async (i) => {
      if (i <= last) throw new Error('next() called twice');
      last = i;
      const fn = middleware[i];
      if (fn) await fn(ctx, () => dispatch(i + 1));
    };
    return dispatch(0);
  };
}

const timing = async (ctx, next) => {
  const start = Date.now();
  await next();
  ctx.log.push(`timing: ${ctx.path} took ${Date.now() - start < 50 ? '<50' : '50+'} ms`);
};

const auth = async (ctx, next) => {
  if (!ctx.user) {
    ctx.status = 401;
    return; // don't call next(): the chain stops here
  }
  await next();
};

const handler = async (ctx) => {
  ctx.status = 200;
  ctx.body = `hello ${ctx.user}`;
};

const run = compose([timing, auth, handler]);

for (const user of ['ann', undefined]) {
  const ctx = { path: '/me', user, log: [] };
  await run(ctx);
  console.log(ctx.status, ctx.body ?? '-', ctx.log);
}
200 hello ann [ 'timing: /me took <50 ms' ]
401 - [ 'timing: /me took <50 ms' ]

timing runs code around everything after it, and auth short-circuits the chain. The next() called twice check catches a common plugin bug that otherwise runs the rest of the chain twice. See Hook: how to execute code before any req and after any res for the Express version.

Plugin options and config files

Plugins usually need options. The convention used by Vite, Rollup and many others is a factory function: the package exports a function that takes options and returns the plugin object. The user calls it in a config file, which is itself a module:

// prefix-plugin.mjs
export default function prefix({ text = '> ' } = {}) {
  return {
    name: 'prefix',
    transform: (line) => text + line,
  };
}
// myapp.config.mjs
import prefix from './prefix-plugin.mjs';

export default {
  plugins: [
    prefix({ text: '# ' }),
    { name: 'inline', transform: (line) => line.trimEnd() + ';' },
    process.env.NODE_ENV === 'production' && { name: 'prod-only', transform: (l) => l },
  ],
};
// cli.mjs
import { access } from 'node:fs/promises';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

async function loadConfig(cwd) {
  const file = path.join(cwd, 'myapp.config.mjs');
  try {
    await access(file);
  } catch {
    return { plugins: [] };
  }
  const { default: config } = await import(pathToFileURL(file).href);
  // allow falsy entries so configs can use `cond && plugin()`
  return { ...config, plugins: (config.plugins ?? []).flat().filter(Boolean) };
}

const config = await loadConfig(process.cwd());
console.log(config.plugins.map((p) => p.name));

let line = 'const x = 1   ';
for (const p of config.plugins) line = p.transform(line);
console.log(line);
[ 'prefix', 'inline' ]
# const x = 1;

The config file imports plugins itself, so Node.js resolves them from the user's project with no extra work. Users can also write a one-off plugin inline, and turn plugins on and off with plain JavaScript. Flattening the array lets a plugin package return several plugins at once.

Factories also give each use its own state. Two calls to prefix() produce two independent plugins, which a plain shared object can't do.

Ordering, dependencies and cleanup

Some plugins need others: a users plugin needs the db plugin to have started first. Some hold resources (connections, file watchers, timers) that must be released when the host stops. A small plugin manager handles both:

// manager.mjs
export class PluginManager {
  #plugins = new Map();
  #started = [];

  constructor(api) {
    this.api = api;
  }

  register(plugin) {
    if (this.#plugins.has(plugin.name)) {
      throw new Error(`plugin "${plugin.name}" registered twice`);
    }
    this.#plugins.set(plugin.name, plugin);
  }

  // dependencies first; otherwise keep registration order
  #order() {
    const sorted = [];
    const state = new Map(); // name -> 'visiting' | 'done'
    const visit = (name, from) => {
      const plugin = this.#plugins.get(name);
      if (!plugin) throw new Error(`"${from}" depends on missing plugin "${name}"`);
      if (state.get(name) === 'done') return;
      if (state.get(name) === 'visiting') throw new Error(`dependency cycle at "${name}"`);
      state.set(name, 'visiting');
      for (const dep of plugin.dependencies ?? []) visit(dep, name);
      state.set(name, 'done');
      sorted.push(plugin);
    };
    for (const name of this.#plugins.keys()) visit(name, name);
    return sorted;
  }

  async start() {
    for (const plugin of this.#order()) {
      await plugin.setup?.(this.api);
      this.#started.push(plugin);
      console.log(`started ${plugin.name}`);
    }
  }

  // stop in reverse order, keep going if one fails
  async stop() {
    const errors = [];
    while (this.#started.length > 0) {
      const plugin = this.#started.pop();
      try {
        await plugin.teardown?.();
        console.log(`stopped ${plugin.name}`);
      } catch (err) {
        errors.push(err);
      }
    }
    if (errors.length > 0) throw new AggregateError(errors, 'plugin teardown failed');
  }

  async [Symbol.asyncDispose]() {
    await this.stop();
  }
}

Plugins share services through the API instead of importing each other:

// main.mjs
import { PluginManager } from './manager.mjs';

// plugin factories: options in, plugin object out
function db({ url }) {
  let connected = false;
  return {
    name: 'db',
    setup(api) {
      connected = true;
      api.provide('db', { query: (sql) => `rows for "${sql}" from ${url}` });
    },
    teardown() {
      connected = false;
    },
  };
}

function users() {
  return {
    name: 'users',
    dependencies: ['db'],
    setup(api) {
      const db = api.use('db');
      api.provide('users', { list: () => db.query('SELECT * FROM users') });
    },
  };
}

function metrics({ failOnStop = false } = {}) {
  return {
    name: 'metrics',
    setup() {},
    teardown() {
      if (failOnStop) throw new Error('could not flush metrics');
    },
  };
}

const services = new Map();
const api = {
  provide: (name, value) => services.set(name, value),
  use: (name) => {
    if (!services.has(name)) throw new Error(`service "${name}" not available`);
    return services.get(name);
  },
};

try {
  await using manager = new PluginManager(api);
  // registered in "wrong" order on purpose
  manager.register(users());
  manager.register(metrics({ failOnStop: true }));
  manager.register(db({ url: 'sqlite://app.db' }));
  await manager.start();

  console.log(api.use('users').list());
} catch (err) {
  console.log(`${err.message}: ${err.errors?.map((e) => e.message)}`);
}
started db
started users
started metrics
rows for "SELECT * FROM users" from sqlite://app.db
stopped users
stopped db
plugin teardown failed: could not flush metrics

Things to notice:

The provide/use registry is a tiny service locator; see Dependency injection for the broader idea. Fastify's fastify-plugin and decorate() are a production version of the same pattern.

Simpler systems use coarse ordering instead of named dependencies. Vite plugins, for example, can set enforce: 'pre' or enforce: 'post' to run before or after the rest.

Keeping the plugin API narrow

Everything a plugin receives is something you have to keep working in the next version. Pass a small object built for plugins, not your internal classes:

const api = Object.freeze({
  version: '2.3.0',
  addCommand: (name, fn) => commands.set(name, fn),
  log: (msg) => logger.info(msg),
});

Object.freeze() stops plugins from monkey-patching the API for each other, and exposing only functions means you can rename private fields freely. It's about maintainability, not security: a plugin runs in your process with full access to fs, process, child_process and every other module.

Isolating untrusted plugins

If a plugin may be buggy or hostile, run it outside the host's event loop. A worker thread lets you kill a plugin that hangs and cap its memory:

// plugins/slugify.mjs
export default {
  name: 'slugify',
  transform: (text) => text.toLowerCase().replace(/[^a-z0-9]+/g, '-'),
};
// plugins/hang.mjs
export default {
  name: 'hang',
  transform: (text) => {
    while (true) {} // a buggy plugin
  },
};
// plugin-worker.mjs
import { parentPort, workerData } from 'node:worker_threads';

const { default: plugin } = await import(workerData.url);

parentPort.on('message', async ({ id, input }) => {
  try {
    parentPort.postMessage({ id, output: await plugin.transform(input) });
  } catch (err) {
    parentPort.postMessage({ id, error: err.message });
  }
});
// host.mjs
import path from 'node:path';
import { pathToFileURL } from 'node:url';
import { Worker } from 'node:worker_threads';

function runIsolated(pluginFile, input, { timeoutMs = 1000 } = {}) {
  const worker = new Worker(new URL('./plugin-worker.mjs', import.meta.url), {
    workerData: { url: pathToFileURL(pluginFile).href },
    resourceLimits: { maxOldGenerationSizeMb: 64 },
  });
  return new Promise((resolve, reject) => {
    const timer = setTimeout(() => {
      reject(new Error(`plugin timed out after ${timeoutMs} ms`));
      worker.terminate();
    }, timeoutMs);
    worker.once('message', (msg) => {
      clearTimeout(timer);
      worker.terminate();
      msg.error ? reject(new Error(msg.error)) : resolve(msg.output);
    });
    worker.once('error', (err) => {
      clearTimeout(timer);
      reject(err);
    });
    worker.postMessage({ id: 1, input });
  });
}

for (const name of ['slugify.mjs', 'hang.mjs']) {
  const file = path.join(import.meta.dirname, 'plugins', name);
  try {
    console.log(name, '->', await runIsolated(file, 'Plugins and Extensions!'));
  } catch (err) {
    console.log(name, '->', err.message);
  }
}
console.log('host is still responsive');
slugify.mjs -> plugins-and-extensions-
hang.mjs -> plugin timed out after 1000 ms
host is still responsive

Messages posted to the worker before it attaches its message listener are queued, so the host doesn't need to wait for the import to finish. A real host would keep one worker per plugin alive and match replies by id instead of starting a worker per call.

A worker still has the same file system and network access as the host. To restrict what plugin code can touch, run it in a child process with Node's permission model, which is stable since Node.js 22.13 and 23.5:

// plugins/snoop.mjs
import { readFileSync } from 'node:fs';
import os from 'node:os';
import path from 'node:path';

export default {
  name: 'snoop',
  run() {
    return readFileSync(path.join(os.homedir(), '.npmrc'), 'utf8');
  },
};
// runner.mjs
const { default: plugin } = await import(process.argv[2]);
try {
  process.send({ ok: true, value: plugin.run() });
} catch (err) {
  process.send({ ok: false, error: `${err.code}: ${err.message}` });
}
// host.mjs
import { fork } from 'node:child_process';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

const dir = import.meta.dirname;
const pluginFile = path.join(dir, 'plugins', 'snoop.mjs');

const child = fork(path.join(dir, 'runner.mjs'), [pathToFileURL(pluginFile).href], {
  execArgv: [
    '--permission',
    `--allow-fs-read=${dir}`, // the runner and its plugins, nothing else
  ],
});
child.on('message', (msg) => console.log(msg));
{
  ok: false,
  error: 'ERR_ACCESS_DENIED: Access to this API has been restricted. Use --allow-fs-read to manage permissions.'
}

With --permission, file system reads and writes, child processes, worker threads, native addons and WASI are denied unless explicitly allowed. The Node.js documentation is clear that this is a seat belt against mistakes, not a sandbox against determined attackers. For truly untrusted code use OS-level isolation: a container, a separate user account, or a WebAssembly runtime. The vm module is not a security boundary either.

Reloading plugins during development

ES modules can't be removed from the module cache, so importing the same URL again returns the old module. The usual workaround is a query string that changes when the file changes:

// reload.mjs
import { writeFile, stat } from 'node:fs/promises';
import path from 'node:path';
import { pathToFileURL } from 'node:url';

const file = path.join(import.meta.dirname, 'greet.mjs');

async function loadFresh(file) {
  const { mtimeMs } = await stat(file);
  const url = `${pathToFileURL(file).href}?v=${mtimeMs}`;
  return (await import(url)).default;
}

await writeFile(file, `export default { name: 'greet', run: () => 'hello' };\n`);
const v1 = await loadFresh(file);

await writeFile(file, `export default { name: 'greet', run: () => 'hello, world' };\n`);
const v2 = await loadFresh(file);
const v3 = await loadFresh(file); // unchanged file: same URL, cached

console.log(v1.run(), '|', v2.run(), '|', v2 === v3);
hello | hello, world | true

Each version stays in memory for the life of the process, and only the plugin's own file is reloaded; modules it imports are not. That's acceptable for a dev server, not for production. Call the old plugin's teardown() before swapping it so timers and watchers don't pile up. If you need real unloading, run plugins in a worker and replace the worker, or restart the process with node --watch (see Autoreload on changes). For CommonJS plugins you can delete the entry from require.cache, with the caveats in Invalidating the module cache and Singletons.

Summary

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents