Fix code quality violations and enhance ROUTE-EXISTS-01 rule
Implement JQHTML function cache ID system and fix bundle compilation Implement underscore prefix for system tables Fix JS syntax linter to support decorators and grant exception to Task system SPA: Update planning docs and wishlists with remaining features SPA: Document Navigation API abandonment and future enhancements Implement SPA browser integration with History API (Phase 1) Convert contacts view page to SPA action Convert clients pages to SPA actions and document conversion procedure SPA: Merge GET parameters and update documentation Implement SPA route URL generation in JavaScript and PHP Implement SPA bootstrap controller architecture Add SPA routing manual page (rsx:man spa) Add SPA routing documentation to CLAUDE.md Phase 4 Complete: Client-side SPA routing implementation Update get_routes() consumers for unified route structure Complete SPA Phase 3: PHP-side route type detection and is_spa flag Restore unified routes structure and Manifest_Query class Refactor route indexing and add SPA infrastructure Phase 3 Complete: SPA route registration in manifest Implement SPA Phase 2: Extract router code and test decorators Rename Jqhtml_Component to Component and complete SPA foundation setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
36
node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js
generated
vendored
Executable file → Normal file
36
node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js
generated
vendored
Executable file → Normal file
@@ -298,16 +298,20 @@ class JavascriptModulesPlugin {
|
||||
]) {
|
||||
normalModuleFactory.hooks.createParser
|
||||
.for(type)
|
||||
.tap(PLUGIN_NAME, (_options) => {
|
||||
.tap(PLUGIN_NAME, (options) => {
|
||||
switch (type) {
|
||||
case JAVASCRIPT_MODULE_TYPE_AUTO: {
|
||||
return new JavascriptParser("auto");
|
||||
return new JavascriptParser("auto", { parse: options.parse });
|
||||
}
|
||||
case JAVASCRIPT_MODULE_TYPE_DYNAMIC: {
|
||||
return new JavascriptParser("script");
|
||||
return new JavascriptParser("script", {
|
||||
parse: options.parse
|
||||
});
|
||||
}
|
||||
case JAVASCRIPT_MODULE_TYPE_ESM: {
|
||||
return new JavascriptParser("module");
|
||||
return new JavascriptParser("module", {
|
||||
parse: options.parse
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -950,7 +954,8 @@ class JavascriptModulesPlugin {
|
||||
let inlinedInIIFE = false;
|
||||
|
||||
if (avoidEntryIife) {
|
||||
renamedInlinedModule = this.getRenamedInlineModule(
|
||||
renamedInlinedModule = this._getRenamedInlineModule(
|
||||
compilation,
|
||||
allModules,
|
||||
renderContext,
|
||||
inlinedModules,
|
||||
@@ -1584,10 +1589,7 @@ class JavascriptModulesPlugin {
|
||||
"// Execute the module function",
|
||||
moduleExecution,
|
||||
...(needModuleDefer
|
||||
? [
|
||||
"// delete __webpack_module_deferred_exports__[module];",
|
||||
"// skipped because strictModuleErrorHandling is not enabled."
|
||||
]
|
||||
? ["delete __webpack_module_deferred_exports__[moduleId];"]
|
||||
: [])
|
||||
]),
|
||||
needModuleLoaded
|
||||
@@ -1608,6 +1610,7 @@ class JavascriptModulesPlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Compilation} compilation compilation
|
||||
* @param {Module[]} allModules allModules
|
||||
* @param {MainRenderContext} renderContext renderContext
|
||||
* @param {Set<Module>} inlinedModules inlinedModules
|
||||
@@ -1617,7 +1620,8 @@ class JavascriptModulesPlugin {
|
||||
* @param {boolean} hasChunkModules hasChunkModules
|
||||
* @returns {Map<Module, Source> | false} renamed inlined modules
|
||||
*/
|
||||
getRenamedInlineModule(
|
||||
_getRenamedInlineModule(
|
||||
compilation,
|
||||
allModules,
|
||||
renderContext,
|
||||
inlinedModules,
|
||||
@@ -1664,9 +1668,15 @@ class JavascriptModulesPlugin {
|
||||
|
||||
if (!moduleSource) continue;
|
||||
const code = /** @type {string} */ (moduleSource.source());
|
||||
const ast = JavascriptParser._parse(code, {
|
||||
sourceType: "auto"
|
||||
});
|
||||
|
||||
const { ast } = JavascriptParser._parse(
|
||||
code,
|
||||
{
|
||||
sourceType: "auto",
|
||||
ranges: true
|
||||
},
|
||||
JavascriptParser._getModuleParseFunction(compilation, m)
|
||||
);
|
||||
|
||||
const scopeManager = eslintScope.analyze(ast, {
|
||||
ecmaVersion: 6,
|
||||
|
||||
Reference in New Issue
Block a user