val-loader

JSON →
library 6.0.0 ·javascript
verified May 27, 2026

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.

total hits 21
actors 7 distinct systems
last hit 21h ago ByteDance
GPTBot
5
ByteDance
4
MetaBot
4
Script
1
Humans
2

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada · 🇬🇧 United Kingdom