Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
24 lines
846 B
JavaScript
24 lines
846 B
JavaScript
"use strict";
|
|
|
|
const _excluded = ["babelOptions", "ecmaVersion", "sourceType", "requireConfigFile"];
|
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
module.exports = function normalizeESLintConfig(options) {
|
|
const {
|
|
babelOptions = {},
|
|
ecmaVersion = "latest",
|
|
sourceType = "module",
|
|
requireConfigFile = true
|
|
} = options,
|
|
otherOptions = _objectWithoutPropertiesLoose(options, _excluded);
|
|
return Object.assign({
|
|
babelOptions: Object.assign({
|
|
cwd: process.cwd()
|
|
}, babelOptions),
|
|
ecmaVersion: ecmaVersion === "latest" ? 1e8 : ecmaVersion,
|
|
sourceType,
|
|
requireConfigFile
|
|
}, otherOptions);
|
|
};
|
|
|
|
//# sourceMappingURL=configuration.cjs.map
|