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:
9
node_modules/webpack/lib/esm/ModuleChunkFormatPlugin.js
generated
vendored
Executable file → Normal file
9
node_modules/webpack/lib/esm/ModuleChunkFormatPlugin.js
generated
vendored
Executable file → Normal file
@@ -7,6 +7,7 @@
|
||||
|
||||
const { ConcatSource } = require("webpack-sources");
|
||||
const { HotUpdateChunk, RuntimeGlobals } = require("..");
|
||||
const { JAVASCRIPT_TYPE } = require("../ModuleSourceTypeConstants");
|
||||
const Template = require("../Template");
|
||||
const {
|
||||
createChunkHashHandler,
|
||||
@@ -110,10 +111,10 @@ class ModuleChunkFormatPlugin {
|
||||
);
|
||||
const hooks = getCompilationHooks(compilation);
|
||||
/**
|
||||
* @param {Set<Chunk>} chunks the chunks to render
|
||||
* @param {Iterable<Chunk>} chunks the chunks to render
|
||||
* @param {ChunkGraph} chunkGraph the chunk graph
|
||||
* @param {Chunk=} runtimeChunk the runtime chunk
|
||||
* @returns {Source|undefined} the source
|
||||
* @returns {Source | undefined} the source
|
||||
*/
|
||||
const withDependentChunks = (chunks, chunkGraph, runtimeChunk) => {
|
||||
if (/** @type {Set<Chunk>} */ (chunks).size > 0) {
|
||||
@@ -153,7 +154,7 @@ class ModuleChunkFormatPlugin {
|
||||
const entryDependentChunks =
|
||||
chunkGraph.getChunkEntryDependentChunksIterable(chunk);
|
||||
const sourceWithDependentChunks = withDependentChunks(
|
||||
/** @type {Set<Chunk>} */ (entryDependentChunks),
|
||||
entryDependentChunks,
|
||||
chunkGraph,
|
||||
chunk
|
||||
);
|
||||
@@ -214,7 +215,7 @@ class ModuleChunkFormatPlugin {
|
||||
const loadedChunks = new Set();
|
||||
for (let i = 0; i < entries.length; i++) {
|
||||
const [module, entrypoint] = entries[i];
|
||||
if (!chunkGraph.getModuleSourceTypes(module).has("javascript")) {
|
||||
if (!chunkGraph.getModuleSourceTypes(module).has(JAVASCRIPT_TYPE)) {
|
||||
continue;
|
||||
}
|
||||
const final = i + 1 === entries.length;
|
||||
|
||||
Reference in New Issue
Block a user