-
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.
- Loading branch information
1 parent
ac7ed7d
commit cf43d0c
Showing
1 changed file
with
12 additions
and
0 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 |
---|---|---|
|
@@ -18,6 +18,18 @@ function gutenberg_register_interactivity_module() { | |
'version' => defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' ), | ||
) | ||
); | ||
|
||
// TODO: Move this to a local file and replace with a simpler version that | ||
// only provides support for import maps. | ||
wp_enqueue_script( | ||
'es-module-shims', | ||
'https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js', | ||
array(), | ||
null, | ||
array( | ||
'strategy' => 'defer', | ||
) | ||
); | ||
} | ||
|
||
add_action( 'wp_enqueue_scripts', 'gutenberg_register_interactivity_module' ); |