{"library":"loader-runner","title":"loader-runner","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install loader-runner"],"cli":null},"imports":["import { runLoaders } from 'loader-runner'","const { runLoaders } = require('loader-runner')","import type { LoaderDefinition } from 'loader-runner'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { runLoaders } from 'loader-runner';\nimport { readFile } from 'fs';\n\nrunLoaders({\n  resource: '/path/to/file.txt?query',\n  loaders: [\n    {\n      loader: '/path/to/loader.js',\n      options: { minimize: true }\n    }\n  ],\n  context: {},\n  readResource: readFile\n}, (err, result) => {\n  if (err) {\n    console.error(err);\n    return;\n  }\n  console.log(result.result[0].toString());\n  console.log(result.fileDependencies);\n});","lang":"typescript","description":"Demonstrates basic usage of runLoaders with a resource, loader configuration, and a callback.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}