Releases: webpack-contrib/val-loader
Releases · webpack-contrib/val-loader
v2.0.1
v2.0.0
Bug Fixes
- support
webpack@5
Features
- better handle errors from a module
- pass
module.parent
to a module - validate loader options
BREAKING CHANGES
- minimum supported node version is
10.13.0
- minimum supported webpack version is
4.0.0
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
Features
- change expected module API (caf2aab)
BREAKING CHANGES
- this commit introduces a major refactoring of the loader.
- remove node 0.10 and node 0.12 support
- the loaded module must now export a function
- this function will be called with the loader options
- this function must return an object with this structure
Property | Type | Description |
---|---|---|
code |
`string | Buffer` |
sourceMap |
SourceMap |
Optional. Will be pased to the next loader or to webpack. |
ast |
any |
Optional. An Abstract Syntax Tree that will be passed to the next loader. Useful to speed up the build time if the next loader uses the same AST. |
dependencies |
Array<string> |
Default: [] . An array of absolute, native paths to file dependencies that need to be watched for changes. |
cacheable |
boolean |
Default: false . Flag whether the code can be re-used in watch mode if none of the dependencies have changed. |
- the function may also return a promise for async results
- switch tooling to webpack-defaults