From 3bc71b353b7a7c1411cd36f8abc6355c6fff5a6b Mon Sep 17 00:00:00 2001 From: Alex Popoff <32072831+aerialist7@users.noreply.github.com> Date: Sun, 8 May 2022 07:45:41 +0400 Subject: [PATCH] "Elements" Web Components Support For ESM (#2084) * Fix `elements-api` web component export for correct work with Vite/React * Fix `elements-stoplight-project` web component export for correct work with Vite/React --- packages/elements-dev-portal/package.json | 1 + packages/elements/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/elements-dev-portal/package.json b/packages/elements-dev-portal/package.json index 723762f9a..550085f7a 100644 --- a/packages/elements-dev-portal/package.json +++ b/packages/elements-dev-portal/package.json @@ -21,6 +21,7 @@ "module": "./dist/index.esm.js", "exports": { "./styles.min.css": "./styles.min.css", + "./web-components.min.js": "./web-components.min.js", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/elements/package.json b/packages/elements/package.json index 82f35dd9a..124aca807 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -21,6 +21,7 @@ "module": "./dist/index.esm.js", "exports": { "./styles.min.css": "./styles.min.css", + "./web-components.min.js": "./web-components.min.js", ".": { "require": "./dist/index.js", "import": "./dist/index.mjs"