Skip to content

Commit c617f0d

Browse files
fix(VP-1133): subpath export added
1 parent 046f81d commit c617f0d

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"default": "./dist/modern/index.cjs"
1818
}
1919
},
20+
"./purged": {
21+
"import": {
22+
"types": "./dist/modern/index.purged.d.ts",
23+
"default": "./dist/modern/index.purged.js"
24+
},
25+
"require": {
26+
"types": "./dist/modern/index.purged.d.cts",
27+
"default": "./dist/modern/index.purged.cjs"
28+
}
29+
},
2030
"./package.json": "./package.json"
2131
},
2232
"files": [

src/index.purged.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Purged entry: only the light SDK. Use this via resolve.alias in production
3+
* to exclude the full SDK (edit button, Visual Builder) from the bundle.
4+
* Same API as the main entry; no full HOC or DOM side effects.
5+
*/
6+
import { IStackSdk as ExternalStackSdkType } from "./types/types";
7+
import LightLivePreviewHoC from "./light-sdk";
8+
9+
export type IStackSdk = ExternalStackSdkType;
10+
11+
export const VB_EmptyBlockParentClass = "visual-builder__empty-block-parent";
12+
export default LightLivePreviewHoC;

0 commit comments

Comments
 (0)