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>
33 lines
793 B
Python
33 lines
793 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'node_addon_api',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['noexcept.gypi'],
|
|
}
|
|
},
|
|
{
|
|
'target_name': 'node_addon_api_except',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['except.gypi'],
|
|
}
|
|
},
|
|
{
|
|
'target_name': 'node_addon_api_maybe',
|
|
'type': 'none',
|
|
'sources': [ 'napi.h', 'napi-inl.h' ],
|
|
'direct_dependent_settings': {
|
|
'include_dirs': [ '.' ],
|
|
'includes': ['noexcept.gypi'],
|
|
'defines': ['NODE_ADDON_API_ENABLE_MAYBE']
|
|
}
|
|
},
|
|
]
|
|
}
|