Add JS-CATCH-FALLBACK-01 rule and update npm packages
Add PHP-ALIAS-01 rule: prohibit field aliasing in serialization 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
node_modules/webpack/lib/optimize/SideEffectsFlagPlugin.js
generated
vendored
5
node_modules/webpack/lib/optimize/SideEffectsFlagPlugin.js
generated
vendored
@@ -45,7 +45,7 @@ const globToRegexpCache = new WeakMap();
|
||||
|
||||
/**
|
||||
* @param {string} glob the pattern
|
||||
* @param {Map<string, RegExp>} cache the glob to RegExp cache
|
||||
* @param {CacheItem} cache the glob to RegExp cache
|
||||
* @returns {RegExp} a regular expression
|
||||
*/
|
||||
const globToRegexp = (glob, cache) => {
|
||||
@@ -381,6 +381,7 @@ class SideEffectsFlagPlugin {
|
||||
for (const module of modules) {
|
||||
optimizeIncomingConnections(module);
|
||||
}
|
||||
moduleGraph.finishUpdateParent();
|
||||
logger.timeEnd("update dependencies");
|
||||
}
|
||||
);
|
||||
@@ -391,7 +392,7 @@ class SideEffectsFlagPlugin {
|
||||
/**
|
||||
* @param {string} moduleName the module name
|
||||
* @param {SideEffectsFlagValue} flagValue the flag value
|
||||
* @param {Map<string, RegExp>} cache cache for glob to regexp
|
||||
* @param {CacheItem} cache cache for glob to regexp
|
||||
* @returns {boolean | undefined} true, when the module has side effects, undefined or false when not
|
||||
*/
|
||||
static moduleHasSideEffects(moduleName, flagValue, cache) {
|
||||
|
||||
Reference in New Issue
Block a user