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:
42
node_modules/webpack/lib/WebpackOptionsApply.js
generated
vendored
42
node_modules/webpack/lib/WebpackOptionsApply.js
generated
vendored
@@ -18,6 +18,7 @@ const FlagDependencyExportsPlugin = require("./FlagDependencyExportsPlugin");
|
||||
|
||||
const JavascriptMetaInfoPlugin = require("./JavascriptMetaInfoPlugin");
|
||||
|
||||
const NodeStuffPlugin = require("./NodeStuffPlugin");
|
||||
const OptionsApply = require("./OptionsApply");
|
||||
|
||||
const RecordIdsPlugin = require("./RecordIdsPlugin");
|
||||
@@ -109,7 +110,15 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
if (options.externalsPresets.node) {
|
||||
const NodeTargetPlugin = require("./node/NodeTargetPlugin");
|
||||
|
||||
new NodeTargetPlugin().apply(compiler);
|
||||
// Some older versions of Node.js don't support all built-in modules via import, only via `require`,
|
||||
// but шt seems like there shouldn't be a warning here since these versions are rarely used in real applications
|
||||
new NodeTargetPlugin(
|
||||
options.output.module &&
|
||||
compiler.platform.node === null &&
|
||||
compiler.platform.web === null
|
||||
? "module-import"
|
||||
: "node-commonjs"
|
||||
).apply(compiler);
|
||||
|
||||
// Handle external CSS `@import` and `url()`
|
||||
if (options.experiments.css) {
|
||||
@@ -126,7 +135,9 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
if (dependencyType === "url") {
|
||||
return callback(null, `asset ${request}`);
|
||||
} else if (
|
||||
dependencyType === "css-import" &&
|
||||
(dependencyType === "css-import" ||
|
||||
dependencyType === "css-import-local-module" ||
|
||||
dependencyType === "css-import-global-module") &&
|
||||
options.experiments.css
|
||||
) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
@@ -149,7 +160,9 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
if (dependencyType === "url") {
|
||||
return callback(null, `asset ${request}`);
|
||||
} else if (
|
||||
dependencyType === "css-import" &&
|
||||
(dependencyType === "css-import" ||
|
||||
dependencyType === "css-import-local-module" ||
|
||||
dependencyType === "css-import-global-module") &&
|
||||
options.experiments.css
|
||||
) {
|
||||
return callback(null, `css-import ${request}`);
|
||||
@@ -294,6 +307,14 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
).apply(compiler);
|
||||
}
|
||||
|
||||
if (options.dotenv) {
|
||||
const DotenvPlugin = require("./DotenvPlugin");
|
||||
|
||||
new DotenvPlugin(
|
||||
typeof options.dotenv === "boolean" ? {} : options.dotenv
|
||||
).apply(compiler);
|
||||
}
|
||||
|
||||
if (options.devtool) {
|
||||
if (options.devtool.includes("source-map")) {
|
||||
const hidden = options.devtool.includes("hidden");
|
||||
@@ -444,11 +465,11 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
}
|
||||
new CommonJsPlugin().apply(compiler);
|
||||
new LoaderPlugin().apply(compiler);
|
||||
if (options.node !== false) {
|
||||
const NodeStuffPlugin = require("./NodeStuffPlugin");
|
||||
|
||||
new NodeStuffPlugin(options.node).apply(compiler);
|
||||
}
|
||||
new NodeStuffPlugin({
|
||||
global: options.node ? options.node.global : false,
|
||||
__dirname: options.node ? options.node.__dirname : false,
|
||||
__filename: options.node ? options.node.__filename : false
|
||||
}).apply(compiler);
|
||||
new APIPlugin().apply(compiler);
|
||||
new ExportsInfoApiPlugin().apply(compiler);
|
||||
new WebpackIsIncludedPlugin().apply(compiler);
|
||||
@@ -667,8 +688,11 @@ class WebpackOptionsApply extends OptionsApply {
|
||||
if (options.optimization.nodeEnv) {
|
||||
const DefinePlugin = require("./DefinePlugin");
|
||||
|
||||
const defValue = JSON.stringify(options.optimization.nodeEnv);
|
||||
|
||||
new DefinePlugin({
|
||||
"process.env.NODE_ENV": JSON.stringify(options.optimization.nodeEnv)
|
||||
"process.env.NODE_ENV": defValue,
|
||||
"import.meta.env.NODE_ENV": defValue
|
||||
}).apply(compiler);
|
||||
}
|
||||
if (options.optimization.minimize) {
|
||||
|
||||
Reference in New Issue
Block a user