Skip to content

Commit

Permalink
revert to wp-scripts 27 and remove react-jsx-runtime polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Jan 17, 2025
1 parent 44eecbf commit da6db7d
Show file tree
Hide file tree
Showing 6 changed files with 1,231 additions and 1,212 deletions.
1 change: 0 additions & 1 deletion assets/js/react-jsx-runtime.asset.php

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/react-jsx-runtime.js

This file was deleted.

11 changes: 0 additions & 11 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,6 @@ public static function assets( $hook ) {
// TODO: update this to a dependency script
do_action( 'newfold/installer/enqueue_scripts' );

// polyfill for wp6.5 support - https://github.com/WordPress/gutenberg/issues/62202#issuecomment-2156796649
if ( version_compare( $wp_version, '6.6', '>' ) ) {
\wp_register_script(
'react-jsx-runtime',
BLUEHOST_PLUGIN_DIR . '/assets/js/react-jsx-runtime.js',
array( 'react' ),
'18.3.0',
true
);
}

\wp_register_script(
'bluehost-script',
BLUEHOST_BUILD_URL . '/index.js',
Expand Down
Loading

0 comments on commit da6db7d

Please sign in to comment.