From 005d03ba937f611841e49398d9a1e9d94ede8e38 Mon Sep 17 00:00:00 2001 From: Luis Herranz Date: Wed, 29 Nov 2023 21:15:05 +0100 Subject: [PATCH] Move the importmap to a folder (#56655) --- lib/experimental/interactivity-api/modules.php | 2 +- tools/webpack/interactivity.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/experimental/interactivity-api/modules.php b/lib/experimental/interactivity-api/modules.php index 7db774de04fd7..02785a152ca1f 100644 --- a/lib/experimental/interactivity-api/modules.php +++ b/lib/experimental/interactivity-api/modules.php @@ -21,7 +21,7 @@ function gutenberg_register_interactivity_module() { // TODO: Load only if the browser doesn't support import maps (https://github.com/guybedford/es-module-shims/issues/371). wp_enqueue_script( 'es-module-shims', - gutenberg_url( '/build/importmap-polyfill.min.js' ), + gutenberg_url( '/build/modules/importmap-polyfill.min.js' ), array(), null, array( diff --git a/tools/webpack/interactivity.js b/tools/webpack/interactivity.js index bf14e74dbc6b6..03bb1f576cb78 100644 --- a/tools/webpack/interactivity.js +++ b/tools/webpack/interactivity.js @@ -75,7 +75,7 @@ module.exports = { patterns: [ { from: './node_modules/es-module-shims/dist/es-module-shims.wasm.js', - to: './build/importmap-polyfill.min.js', + to: './build/modules/importmap-polyfill.min.js', }, ], } ),