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:
18
node_modules/webpack/lib/ExternalModuleFactoryPlugin.js
generated
vendored
Executable file → Normal file
18
node_modules/webpack/lib/ExternalModuleFactoryPlugin.js
generated
vendored
Executable file → Normal file
@@ -16,6 +16,7 @@ const { cachedSetProperty, resolveByProperty } = require("./util/cleverMerge");
|
||||
|
||||
/** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */
|
||||
/** @typedef {import("../declarations/WebpackOptions").ResolveOptions} ResolveOptions */
|
||||
/** @typedef {import("../declarations/WebpackOptions").ExternalsType} ExternalsType */
|
||||
/** @typedef {import("../declarations/WebpackOptions").ExternalItemValue} ExternalItemValue */
|
||||
/** @typedef {import("../declarations/WebpackOptions").ExternalItemObjectKnown} ExternalItemObjectKnown */
|
||||
/** @typedef {import("../declarations/WebpackOptions").ExternalItemObjectUnknown} ExternalItemObjectUnknown */
|
||||
@@ -50,7 +51,7 @@ const callDeprecatedExternals = util.deprecate(
|
||||
* @param {EXPECTED_FUNCTION} externalsFunction externals function
|
||||
* @param {string} context context
|
||||
* @param {string} request request
|
||||
* @param {(err: Error | null | undefined, value: ExternalValue | undefined, ty: ExternalType | undefined) => void} cb cb
|
||||
* @param {(err: Error | null | undefined, value: ExternalValue | undefined, ty: ExternalsType | undefined) => void} cb cb
|
||||
*/
|
||||
(externalsFunction, context, request, cb) => {
|
||||
// eslint-disable-next-line no-useless-call
|
||||
@@ -90,13 +91,12 @@ const resolveLayer = (obj, layer) => {
|
||||
};
|
||||
|
||||
/** @typedef {string | string[] | boolean | Record<string, string | string[]>} ExternalValue */
|
||||
/** @typedef {string | undefined} ExternalType */
|
||||
|
||||
const PLUGIN_NAME = "ExternalModuleFactoryPlugin";
|
||||
|
||||
class ExternalModuleFactoryPlugin {
|
||||
/**
|
||||
* @param {string} type default external type
|
||||
* @param {ExternalsType} type default external type
|
||||
* @param {Externals} externals externals config
|
||||
*/
|
||||
constructor(type, externals) {
|
||||
@@ -122,7 +122,7 @@ class ExternalModuleFactoryPlugin {
|
||||
|
||||
/**
|
||||
* @param {ExternalValue} value the external config
|
||||
* @param {ExternalType | undefined} type type of external
|
||||
* @param {ExternalsType | undefined} type type of external
|
||||
* @param {HandleExternalCallback} callback callback
|
||||
* @returns {void}
|
||||
*/
|
||||
@@ -131,7 +131,7 @@ class ExternalModuleFactoryPlugin {
|
||||
// Not externals, fallback to original factory
|
||||
return callback();
|
||||
}
|
||||
/** @type {string | string[] | Record<string, string|string[]>} */
|
||||
/** @type {ExternalValue} */
|
||||
let externalConfig = value === true ? dependency.request : value;
|
||||
// When no explicit type is specified, extract it from the externalConfig
|
||||
if (type === undefined) {
|
||||
@@ -140,7 +140,9 @@ class ExternalModuleFactoryPlugin {
|
||||
UNSPECIFIED_EXTERNAL_TYPE_REGEXP.test(externalConfig)
|
||||
) {
|
||||
const idx = externalConfig.indexOf(" ");
|
||||
type = externalConfig.slice(0, idx);
|
||||
type =
|
||||
/** @type {ExternalsType} */
|
||||
(externalConfig.slice(0, idx));
|
||||
externalConfig = externalConfig.slice(idx + 1);
|
||||
} else if (
|
||||
Array.isArray(externalConfig) &&
|
||||
@@ -149,7 +151,7 @@ class ExternalModuleFactoryPlugin {
|
||||
) {
|
||||
const firstItem = externalConfig[0];
|
||||
const idx = firstItem.indexOf(" ");
|
||||
type = firstItem.slice(0, idx);
|
||||
type = /** @type {ExternalsType} */ (firstItem.slice(0, idx));
|
||||
externalConfig = [
|
||||
firstItem.slice(idx + 1),
|
||||
...externalConfig.slice(1)
|
||||
@@ -255,7 +257,7 @@ class ExternalModuleFactoryPlugin {
|
||||
/**
|
||||
* @param {Error | null | undefined} err err
|
||||
* @param {ExternalValue=} value value
|
||||
* @param {ExternalType=} type type
|
||||
* @param {ExternalsType=} type type
|
||||
* @returns {void}
|
||||
*/
|
||||
const cb = (err, value, type) => {
|
||||
|
||||
Reference in New Issue
Block a user