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
- drops support for rollup 1.x, which allows simplifying the implementation
- implements 'plugin hook filters' for improved performance under rolldown
- passes a new `code` argument to custom filter functions, so that consumers can add more advanced filtering logic
- allows custom filter functions to be async
Copy file name to clipboardExpand all lines: packages/babel/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patt
94
94
95
95
### `filter`
96
96
97
-
Type: (id: string) => boolean<br>
97
+
Type: (id: string, code: string) => boolean<br>
98
98
99
99
Custom [filter function](https://github.com/rollup/plugins/tree/master/packages/pluginutils#createfilter) can be used to determine whether or not certain modules should be operated upon.
* An array of file extensions that Babel should transpile. If you want to transpile TypeScript files with this plugin it's essential to include .ts and .tsx in this option.
0 commit comments