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>
22 lines
541 B
Markdown
22 lines
541 B
Markdown
# eslint-plugin-import/memo-parser
|
|
|
|
## NOTE
|
|
|
|
This used to improve performance, but as of ESLint 5 and v2 of this plugin, it seems to just consume a bunch of memory and slightly increase lint times.
|
|
|
|
**Not recommended for use at this time!**
|
|
|
|
This parser is just a memoizing wrapper around some actual parser.
|
|
|
|
To configure, just add your _actual_ parser to the `parserOptions`, like so:
|
|
|
|
```yaml
|
|
parser: eslint-plugin-import/memo-parser
|
|
# parser: babel-eslint
|
|
|
|
parserOptions:
|
|
parser: babel-eslint
|
|
sourceType: module
|
|
ecmaVersion: 6
|
|
```
|