You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,40 @@
1
+
# Change Log
2
+
3
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
* change expected module API ([caf2aab](https://github.com/webpack-contrib/val-loader/commit/caf2aab))
12
+
13
+
14
+
### BREAKING CHANGES
15
+
16
+
* This commit introduces a major refactoring of the loader.
17
+
18
+
- Remove node 0.10 and node 0.12 support
19
+
- The loaded module must now export a function
20
+
- This function will be called with the loader options
21
+
- This function must return an object with this structure
22
+
23
+
Property | Type | Description
24
+
:--------|:-----|:-----------
25
+
`code` | `string|Buffer` | **Required**. The code that is passed to the next loader or to webpack.
26
+
`sourceMap` | [`SourceMap`](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit) | **Optional**. Will be pased to the next loader or to webpack.
27
+
`ast` | `any` | **Optional**. An [Abstract Syntax Tree](https://en.wikipedia.org/wiki/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.
28
+
`dependencies` | `Array<string>` | **Default: `[]`**. An array of absolute, native paths to file dependencies that need to be watched for changes.
29
+
`cacheable` | `boolean` | **Default: `false`**. Flag whether the code can be re-used in watch mode if none of the `dependencies` have changed.
30
+
31
+
- The function may also return a promise for async results
32
+
- Switch tooling to webpack-defaults
33
+
34
+
#11
35
+
36
+
37
+
1
38
# Change Log
2
39
3
40
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
0 commit comments