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:
6
node_modules/webpack/lib/Compiler.js
generated
vendored
Executable file → Normal file
6
node_modules/webpack/lib/Compiler.js
generated
vendored
Executable file → Normal file
@@ -719,9 +719,9 @@ class Compiler {
|
||||
({ name: file, source, info }, callback) => {
|
||||
let targetFile = file;
|
||||
let immutable = info.immutable;
|
||||
const queryStringIdx = targetFile.indexOf("?");
|
||||
if (queryStringIdx >= 0) {
|
||||
targetFile = targetFile.slice(0, queryStringIdx);
|
||||
const queryOrHashStringIdx = targetFile.search(/[?#]/);
|
||||
if (queryOrHashStringIdx >= 0) {
|
||||
targetFile = targetFile.slice(0, queryOrHashStringIdx);
|
||||
// We may remove the hash, which is in the query string
|
||||
// So we recheck if the file is immutable
|
||||
// This doesn't cover all cases, but immutable is only a performance optimization anyway
|
||||
|
||||
Reference in New Issue
Block a user