All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.0.0 (2024-01-15)
5.0.1 (2022-11-29)
5.0.0 (2022-05-17)
- minimum supported
Node.js
version is14.15.0
4.0.0 (2021-05-14)
- minimum supported
Node.js
version is12.13.0
3.1.0 (2021-03-01)
- added the
buildDependensies
option (#63) (04be3eb) - added the
executableFile
option (#65) (b46090f) - support ECMA modules for the
executableFile
option (#66) (1e6675f)
3.0.0 (2020-12-22)
- minimum supported webpack version is
5
2.1.2 (2020-10-09)
- update
schema-utils
2.1.1 (2020-04-09)
- update deps
2.1.0 (2019-12-17)
2.0.2 (2019-11-25)
- add the
funding
field inpackage.json
2.0.1 (2019-11-19)
2.0.0 (2019-11-14)
- support
webpack@5
- better handle errors from a module
- pass
module.parent
to a module - validate loader options
- minimum supported node version is
10.13.0
- minimum supported webpack version is
4.0.0
1.1.1 (2018-06-21)
1.1.0 (2017-11-19)
- add support for
contextDependencies
in the{Object}
interface (options.contextDependencies
) (#23) (78aa6fe)
1.0.2 (2017-03-21)
- .babelrc: enable modules (b0b116a)
1.0.1 (2017-03-20)
- src: add CJS wrapper (cd043f5)
1.0.0 (2017-03-16)
- change expected module API (caf2aab)
- 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