Runs (webpack) loaders as an independent module without webpack itself. Current stable version is 4.3.2, released in 2021 with performance improvements. Minimal release cadence: roughly one version per year. Key differentiator: it allows running loaders in isolation for testing or custom build pipelines. Supports Node.js >=6.11.5 and is ESM/CJS compatible. Lightweight, focuses solely on loader execution logic with hooks for resource processing.
npm install loader-runnerVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of runLoaders with a resource, loader configuration, and a callback.
Upgrade Node.js to >=6 or stick to v2 if using older Node.
Update loader code to handle callback(err, undefined) and avoid throwing.
Use normal require/import for loaders.
Ensure loaders do not call both callback and reject a promise; favor one error handling mechanism.
If relying on these properties, check that they are empty strings instead of undefined.
Use escape sequences for '#' in resource and loader requests.
Run 'npm install loader-runner' and use correct import: 'import { runLoaders } from "loader-runner"'.Change import to: 'import { runLoaders } from "loader-runner"' or use CommonJS destructuring: 'const { runLoaders } = require("loader-runner")'.Remove callback call when using promise; use only promise resolve/reject.
Check both err and result in callback; result may be undefined on error.
No dependency data recorded yet.