Skip to content

Commit 5ffce75

Browse files
authored
Fix bundle (#338)
1 parent 3cafe42 commit 5ffce75

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@ import {Configuration, Plug, GlobalPlug} from './plug';
22

33
export type {Configuration, Plug};
44

5-
const plug = new GlobalPlug();
6-
7-
export {plug};
8-
95
/* eslint-disable-next-line import/no-default-export -- Should be default export */
10-
export default plug;
6+
export default GlobalPlug.GLOBAL;

src/plug.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ function detectAppId(): string | null {
8888
}
8989

9090
export class GlobalPlug implements Plug {
91+
public static readonly GLOBAL = new GlobalPlug();
92+
9193
private pluginFactories: {[key: string]: PluginFactory} = {
9294
playground: playgroundPluginFactory,
9395
preview: previewPluginFactory,

0 commit comments

Comments
 (0)