-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade React to 16.8.4: Welcome React Hooks (#14400)
- Loading branch information
1 parent
11086fa
commit 336a1a4
Showing
7 changed files
with
142 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,10 +380,21 @@ function gutenberg_register_scripts_and_styles() { | |
* @since 0.1.0 | ||
*/ | ||
function gutenberg_register_vendor_scripts() { | ||
/* | ||
* This function is kept as an empty stub, in case Gutenberg should need to | ||
* explicitly provide a version newer than that provided by core. | ||
*/ | ||
$suffix = SCRIPT_DEBUG ? '' : '.min'; | ||
|
||
// Vendor Scripts. | ||
$react_suffix = ( SCRIPT_DEBUG ? '.development' : '.production' ) . $suffix; | ||
|
||
gutenberg_register_vendor_script( | ||
'react', | ||
'https://unpkg.com/[email protected]/umd/react' . $react_suffix . '.js', | ||
array( 'wp-polyfill' ) | ||
); | ||
gutenberg_register_vendor_script( | ||
'react-dom', | ||
'https://unpkg.com/[email protected]/umd/react-dom' . $react_suffix . '.js', | ||
array( 'react' ) | ||
); | ||
} | ||
|
||
/** | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.