Enhance refactor commands with controller-aware Route() updates and fix code quality violations
Add semantic token highlighting for 'that' variable and comment file references in VS Code extension Add Phone_Text_Input and Currency_Input components with formatting utilities Implement client widgets, form standardization, and soft delete functionality Add modal scroll lock and update documentation Implement comprehensive modal system with form integration and validation Fix modal component instantiation using jQuery plugin API Implement modal system with responsive sizing, queuing, and validation support Implement form submission with validation, error handling, and loading states Implement country/state selectors with dynamic data loading and Bootstrap styling Revert Rsx::Route() highlighting in Blade/PHP files Target specific PHP scopes for Rsx::Route() highlighting in Blade Expand injection selector for Rsx::Route() highlighting Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls Update jqhtml packages to v2.2.165 Add bundle path validation for common mistakes (development mode only) Create Ajax_Select_Input widget and Rsx_Reference_Data controller Create Country_Select_Input widget with default country support Initialize Tom Select on Select_Input widgets Add Tom Select bundle for enhanced select dropdowns Implement ISO 3166 geographic data system for country/region selection Implement widget-based form system with disabled state support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
195
node_modules/webpack/lib/WebpackOptionsApply.js
generated
vendored
195
node_modules/webpack/lib/WebpackOptionsApply.js
generated
vendored
@@ -73,9 +73,8 @@ const DefaultStatsPrinterPlugin = require("./stats/DefaultStatsPrinterPlugin");
|
||||
|
||||
const { cleverMerge } = require("./util/cleverMerge");
|
||||
|
||||
/** @typedef {import("../declarations/WebpackOptions").WebpackOptionsNormalized} WebpackOptions */
|
||||
/** @typedef {import("../declarations/WebpackOptions").WebpackPluginFunction} WebpackPluginFunction */
|
||||
/** @typedef {import("../declarations/WebpackOptions").WebpackPluginInstance} WebpackPluginInstance */
|
||||
/** @typedef {import("./config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */
|
||||
/** @typedef {import("./Compiler")} Compiler */
|
||||
/** @typedef {import("./util/fs").InputFileSystem} InputFileSystem */
|
||||
/** @typedef {import("./util/fs").IntermediateFileSystem} IntermediateFileSystem */
|
||||
@@ -93,7 +92,7 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
* @returns {WebpackOptions} options object
|
||||
*/
|
||||
process(options, compiler) {
|
||||
compiler.outputPath = /** @type {string} */ (options.output.path);
|
||||
compiler.outputPath = options.output.path;
|
||||
compiler.recordsInputPath = options.recordsInputPath || null;
|
||||
compiler.recordsOutputPath = options.recordsOutputPath || null;
|
||||
compiler.name = options.name;
|
||||
@@ -111,35 +110,86 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
const NodeTargetPlugin = require("./node/NodeTargetPlugin");
|
||||
|
||||
new NodeTargetPlugin().apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electronMain) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
|
||||
new ElectronTargetPlugin("main").apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electronPreload) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
// Handle external CSS `@import` and `url()`
|
||||
if (options.experiments.css) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ExternalsPlugin = require("./ExternalsPlugin");
|
||||
|
||||
new ElectronTargetPlugin("preload").apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electronRenderer) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
new ExternalsPlugin(
|
||||
"module",
|
||||
({ request, dependencyType, contextInfo }, callback) => {
|
||||
if (
|
||||
/\.css(\?|$)/.test(contextInfo.issuer) &&
|
||||
/^(\/\/|https?:\/\/|#)/.test(request)
|
||||
) {
|
||||
if (dependencyType === "url") {
|
||||
return callback(null, `asset ${request}`);
|
||||
} else if (
|
||||
dependencyType === "css-import" &&
|
||||
options.experiments.css
|
||||
) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
}
|
||||
|
||||
new ElectronTargetPlugin("renderer").apply(compiler);
|
||||
callback();
|
||||
}
|
||||
).apply(compiler);
|
||||
}
|
||||
}
|
||||
if (
|
||||
options.externalsPresets.electron &&
|
||||
!options.externalsPresets.electronMain &&
|
||||
!options.externalsPresets.electronPreload &&
|
||||
!options.externalsPresets.electronRenderer
|
||||
) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
if (options.externalsPresets.webAsync || options.externalsPresets.web) {
|
||||
const type = options.externalsPresets.webAsync ? "import" : "module";
|
||||
|
||||
new ElectronTargetPlugin().apply(compiler);
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ExternalsPlugin = require("./ExternalsPlugin");
|
||||
|
||||
new ExternalsPlugin(type, ({ request, dependencyType }, callback) => {
|
||||
if (/^(\/\/|https?:\/\/|#|std:|jsr:|npm:)/.test(request)) {
|
||||
if (dependencyType === "url") {
|
||||
return callback(null, `asset ${request}`);
|
||||
} else if (
|
||||
dependencyType === "css-import" &&
|
||||
options.experiments.css
|
||||
) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
} else if (/^(\/\/|https?:\/\/|std:|jsr:|npm:)/.test(request)) {
|
||||
return callback(null, `${type} ${request}`);
|
||||
}
|
||||
}
|
||||
|
||||
callback();
|
||||
}).apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electron) {
|
||||
if (options.externalsPresets.electronMain) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
|
||||
new ElectronTargetPlugin("main").apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electronPreload) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
|
||||
new ElectronTargetPlugin("preload").apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.electronRenderer) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
|
||||
new ElectronTargetPlugin("renderer").apply(compiler);
|
||||
}
|
||||
if (
|
||||
!options.externalsPresets.electronMain &&
|
||||
!options.externalsPresets.electronPreload &&
|
||||
!options.externalsPresets.electronRenderer
|
||||
) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ElectronTargetPlugin = require("./electron/ElectronTargetPlugin");
|
||||
|
||||
new ElectronTargetPlugin().apply(compiler);
|
||||
}
|
||||
}
|
||||
if (options.externalsPresets.nwjs) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
@@ -147,80 +197,6 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
|
||||
new ExternalsPlugin("node-commonjs", "nw.gui").apply(compiler);
|
||||
}
|
||||
if (options.externalsPresets.webAsync) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ExternalsPlugin = require("./ExternalsPlugin");
|
||||
|
||||
new ExternalsPlugin("import", ({ request, dependencyType }, callback) => {
|
||||
if (dependencyType === "url") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `asset ${request}`);
|
||||
}
|
||||
} else if (options.experiments.css && dependencyType === "css-import") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
} else if (
|
||||
options.experiments.css &&
|
||||
/^(\/\/|https?:\/\/|std:)/.test(/** @type {string} */ (request))
|
||||
) {
|
||||
if (/^\.css(\?|$)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
return callback(null, `import ${request}`);
|
||||
}
|
||||
callback();
|
||||
}).apply(compiler);
|
||||
} else if (options.externalsPresets.web) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ExternalsPlugin = require("./ExternalsPlugin");
|
||||
|
||||
new ExternalsPlugin("module", ({ request, dependencyType }, callback) => {
|
||||
if (dependencyType === "url") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `asset ${request}`);
|
||||
}
|
||||
} else if (options.experiments.css && dependencyType === "css-import") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
} else if (
|
||||
/^(\/\/|https?:\/\/|std:)/.test(/** @type {string} */ (request))
|
||||
) {
|
||||
if (
|
||||
options.experiments.css &&
|
||||
/^\.css((\?)|$)/.test(/** @type {string} */ (request))
|
||||
) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
return callback(null, `module ${request}`);
|
||||
}
|
||||
callback();
|
||||
}).apply(compiler);
|
||||
} else if (options.externalsPresets.node && options.experiments.css) {
|
||||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/41697
|
||||
const ExternalsPlugin = require("./ExternalsPlugin");
|
||||
|
||||
new ExternalsPlugin("module", ({ request, dependencyType }, callback) => {
|
||||
if (dependencyType === "url") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `asset ${request}`);
|
||||
}
|
||||
} else if (dependencyType === "css-import") {
|
||||
if (/^(\/\/|https?:\/\/|#)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
} else if (
|
||||
/^(\/\/|https?:\/\/|std:)/.test(/** @type {string} */ (request))
|
||||
) {
|
||||
if (/^\.css(\?|$)/.test(/** @type {string} */ (request))) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
}
|
||||
return callback(null, `module ${request}`);
|
||||
}
|
||||
callback();
|
||||
}).apply(compiler);
|
||||
}
|
||||
|
||||
new ChunkPrefetchPreloadPlugin().apply(compiler);
|
||||
|
||||
@@ -446,11 +422,7 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
}
|
||||
|
||||
new EntryOptionPlugin().apply(compiler);
|
||||
compiler.hooks.entryOption.call(
|
||||
/** @type {string} */
|
||||
(options.context),
|
||||
options.entry
|
||||
);
|
||||
compiler.hooks.entryOption.call(options.context, options.entry);
|
||||
|
||||
new RuntimePlugin().apply(compiler);
|
||||
|
||||
@@ -461,7 +433,6 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
|
||||
new CompatibilityPlugin().apply(compiler);
|
||||
new HarmonyModulesPlugin({
|
||||
topLevelAwait: options.experiments.topLevelAwait,
|
||||
deferImport: options.experiments.deferImport
|
||||
}).apply(compiler);
|
||||
if (options.amd !== false) {
|
||||
@@ -478,9 +449,7 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
|
||||
new NodeStuffPlugin(options.node).apply(compiler);
|
||||
}
|
||||
new APIPlugin({
|
||||
module: options.output.module
|
||||
}).apply(compiler);
|
||||
new APIPlugin().apply(compiler);
|
||||
new ExportsInfoApiPlugin().apply(compiler);
|
||||
new WebpackIsIncludedPlugin().apply(compiler);
|
||||
new ConstPlugin().apply(compiler);
|
||||
@@ -703,9 +672,7 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
}).apply(compiler);
|
||||
}
|
||||
if (options.optimization.minimize) {
|
||||
for (const minimizer of /** @type {(WebpackPluginInstance | WebpackPluginFunction | "...")[]} */ (
|
||||
options.optimization.minimizer
|
||||
)) {
|
||||
for (const minimizer of options.optimization.minimizer) {
|
||||
if (typeof minimizer === "function") {
|
||||
/** @type {WebpackPluginFunction} */
|
||||
(minimizer).call(compiler, compiler);
|
||||
@@ -810,7 +777,7 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
fs:
|
||||
/** @type {IntermediateFileSystem} */
|
||||
(compiler.intermediateFileSystem),
|
||||
context: /** @type {string} */ (options.context),
|
||||
context: options.context,
|
||||
cacheLocation:
|
||||
/** @type {string} */
|
||||
(cacheOptions.cacheLocation),
|
||||
|
||||
Reference in New Issue
Block a user