From d3b54f4750219a9be7a45a6411abbd88d23b4a0a Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 12 Sep 2024 11:42:41 +0200 Subject: [PATCH] Use mts/mjs extension for wp module --- packages/a11y/package.json | 2 +- packages/a11y/src/module/{index.ts => index.mts} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename packages/a11y/src/module/{index.ts => index.mts} (100%) diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 327d6b9ff07167..e2c182b6452c73 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -28,7 +28,7 @@ "module": "build-module/index.js", "react-native": "src/index", "types": "build-types", - "wpScriptModuleExports": "./build-module/module/index.js", + "wpScriptModuleExports": "./build-module/module/index.mjs", "dependencies": { "@babel/runtime": "^7.16.0", "@wordpress/dom-ready": "file:../dom-ready", diff --git a/packages/a11y/src/module/index.ts b/packages/a11y/src/module/index.mts similarity index 100% rename from packages/a11y/src/module/index.ts rename to packages/a11y/src/module/index.mts