val-loader
JSON →A webpack loader that executes a given module at build-time and returns the result as the module's code. Current stable version is 6.0.0 (2024-01-15). It allows custom loader logic without writing a full loader; the target module receives (options, loaderContext) and must return an object with at least a 'code' property. Supports returning source maps, AST, dependencies, and context dependencies. Requires webpack 5.x and Node.js >= 18.12.0. Releases follow semver, with breaking changes only for Node.js and webpack version bumps. Key differentiator: simplifies creating loaders for static value generation or compile-time computation.
Traffic · last 30 days ↓33% vs prev 7d
total hits 21
actors 7 distinct systems
last hit 20h ago ByteDance
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada · 🇬🇧 United Kingdom
API endpoints
full doc /v1/registry/val-loader
install /v1/registry/val-loader/install
compatibility /v1/registry/val-loader/compatibility