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>
104 lines
2.8 KiB
JSON
104 lines
2.8 KiB
JSON
{
|
|
"name": "@wordpress/scripts",
|
|
"version": "27.9.0",
|
|
"description": "Collection of reusable scripts for WordPress development.",
|
|
"author": "The WordPress Contributors",
|
|
"license": "GPL-2.0-or-later",
|
|
"keywords": [
|
|
"wordpress",
|
|
"gutenberg",
|
|
"scripts"
|
|
],
|
|
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts/README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/WordPress/gutenberg.git",
|
|
"directory": "packages/scripts"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/WordPress/gutenberg/issues"
|
|
},
|
|
"engines": {
|
|
"node": ">=18",
|
|
"npm": ">=6.14.4"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"config",
|
|
"scripts",
|
|
"utils"
|
|
],
|
|
"bin": {
|
|
"wp-scripts": "./bin/wp-scripts.js"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.16.0",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
"@svgr/webpack": "^8.0.1",
|
|
"@wordpress/babel-preset-default": "^7.42.0",
|
|
"@wordpress/browserslist-config": "^5.41.0",
|
|
"@wordpress/dependency-extraction-webpack-plugin": "^5.9.0",
|
|
"@wordpress/e2e-test-utils-playwright": "^0.26.0",
|
|
"@wordpress/eslint-plugin": "^18.1.0",
|
|
"@wordpress/jest-preset-default": "^11.29.0",
|
|
"@wordpress/npm-package-json-lint-config": "^4.43.0",
|
|
"@wordpress/postcss-plugins-preset": "^4.42.0",
|
|
"@wordpress/prettier-config": "^3.15.0",
|
|
"@wordpress/stylelint-config": "^21.41.0",
|
|
"adm-zip": "^0.5.9",
|
|
"babel-jest": "^29.6.2",
|
|
"babel-loader": "^8.2.3",
|
|
"browserslist": "^4.21.10",
|
|
"chalk": "^4.0.0",
|
|
"check-node-version": "^4.1.0",
|
|
"clean-webpack-plugin": "^3.0.0",
|
|
"copy-webpack-plugin": "^10.2.0",
|
|
"cross-spawn": "^5.1.0",
|
|
"css-loader": "^6.2.0",
|
|
"cssnano": "^6.0.1",
|
|
"cwd": "^0.10.0",
|
|
"dir-glob": "^3.0.1",
|
|
"eslint": "^8.3.0",
|
|
"expect-puppeteer": "^4.4.0",
|
|
"fast-glob": "^3.2.7",
|
|
"filenamify": "^4.2.0",
|
|
"jest": "^29.6.2",
|
|
"jest-dev-server": "^9.0.1",
|
|
"jest-environment-jsdom": "^29.6.2",
|
|
"jest-environment-node": "^29.6.2",
|
|
"markdownlint-cli": "^0.31.1",
|
|
"merge-deep": "^3.0.3",
|
|
"mini-css-extract-plugin": "^2.5.1",
|
|
"minimist": "^1.2.0",
|
|
"npm-package-json-lint": "^6.4.0",
|
|
"npm-packlist": "^3.0.0",
|
|
"postcss": "^8.4.5",
|
|
"postcss-loader": "^6.2.1",
|
|
"prettier": "npm:wp-prettier@3.0.3",
|
|
"puppeteer-core": "^13.2.0",
|
|
"react-refresh": "^0.14.0",
|
|
"read-pkg-up": "^7.0.1",
|
|
"resolve-bin": "^0.4.0",
|
|
"rtlcss-webpack-plugin": "^4.0.7",
|
|
"sass": "^1.35.2",
|
|
"sass-loader": "^12.1.0",
|
|
"source-map-loader": "^3.0.0",
|
|
"stylelint": "^14.2.0",
|
|
"terser-webpack-plugin": "^5.3.9",
|
|
"url-loader": "^4.1.1",
|
|
"webpack": "^5.88.2",
|
|
"webpack-bundle-analyzer": "^4.9.1",
|
|
"webpack-cli": "^5.1.4",
|
|
"webpack-dev-server": "^4.15.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@playwright/test": "^1.43.0",
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"gitHead": "42f38f287506a6b3ed8ccba839b18ad066821044"
|
|
}
|