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 }}
Repository navigation
Commit ffa7ce7
Browse filesBrowse the repository at this point in the historyBrowse files
feat: accept glob patterns in more path options (#22478)
* feat: accept glob patterns in more path options
* type
* fix
* test: regenerate validator and align module-test-glob after rebase
module-test lost its fixed waits on main; the glob copy raced the update.
* refactor: share glob helpers across path options
compileGlobList backs both matchGlobCondition and RuleSetCompiler's glob
condition, matchModuleGlobCondition replaces three nameForCondition copies,
and compileRelativeGlobPaths serves resolve.restrictions, WatchIgnorePlugin
and snapshot paths.
---------
Co-authored-by: alexander-akait <[email protected]>
* Match glob patterns against the value, `!` in front of a pattern excludes it. Path separators are normalized to `/` on every OS, and a relative pattern matches at any depth.
1892
+
* @since 5.112.0
1893
+
*/
1894
+
exportinterfaceGlobCondition{
1895
+
/**
1896
+
* Glob patterns to match.
1897
+
*/
1898
+
glob: RuleSetGlobs|RuleSetGlob;
1899
+
}
1900
+
1886
1901
/**
1887
1902
* An expression which is used to address the global object/scope in runtime code.
1888
1903
*/
@@ -2173,9 +2188,11 @@ export type IgnoreWarnings = Array<
2173
2188
|/** Ignore specific warnings. *//** A RegExp to select the warning message. */RegExp
2174
2189
|{
2175
2190
/**
2176
-
* A RegExp to select the origin file for the warning.
2191
+
* A RegExp or a glob to select the origin file for the warning.
2177
2192
*/
2178
-
file?: RegExp;
2193
+
file?:
2194
+
|RegExp
2195
+
|/** A glob matching the origin file for the warning at any depth. @since 5.112.0 */NonEmptyString;
|/** Don't parse files matching. It's matched against the full resolved request. *//** A regular expression, when matched the module is not parsed. */RegExp
2955
2976
|/** An absolute path, when the module starts with this path it is not parsed. */AbsolutePath
2977
+
|/** A glob, when it matches the module's resource path at any depth the module is not parsed. @since 5.112.0 */NonEmptyRelativePath
2956
2978
|import("../lib/module/NormalModule").NoParseFn
2957
2979
>
2958
2980
|/** A regular expression, when matched the module is not parsed. */RegExp
2959
2981
|/** An absolute path, when the module starts with this path it is not parsed. */AbsolutePath
2982
+
|/** A glob, when it matches the module's resource path at any depth the module is not parsed. @since 5.112.0 */NonEmptyRelativePath
0 commit comments