From c617f0d604209c1aa2c77d31d161053ba51eefe9 Mon Sep 17 00:00:00 2001 From: Aditya Pachauri Date: Wed, 11 Mar 2026 12:07:10 +0530 Subject: [PATCH] fix(VP-1133): subpath export added --- package.json | 10 ++++++++++ src/index.purged.ts | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/index.purged.ts diff --git a/package.json b/package.json index 585a1cb9..d136f37e 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,16 @@ "default": "./dist/modern/index.cjs" } }, + "./purged": { + "import": { + "types": "./dist/modern/index.purged.d.ts", + "default": "./dist/modern/index.purged.js" + }, + "require": { + "types": "./dist/modern/index.purged.d.cts", + "default": "./dist/modern/index.purged.cjs" + } + }, "./package.json": "./package.json" }, "files": [ diff --git a/src/index.purged.ts b/src/index.purged.ts new file mode 100644 index 00000000..78f952e1 --- /dev/null +++ b/src/index.purged.ts @@ -0,0 +1,12 @@ +/** + * Purged entry: only the light SDK. Use this via resolve.alias in production + * to exclude the full SDK (edit button, Visual Builder) from the bundle. + * Same API as the main entry; no full HOC or DOM side effects. + */ +import { IStackSdk as ExternalStackSdkType } from "./types/types"; +import LightLivePreviewHoC from "./light-sdk"; + +export type IStackSdk = ExternalStackSdkType; + +export const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent"; +export default LightLivePreviewHoC;