Skip to content

Commit 4c322b6

Browse files
committed
feat: export UpdateFlag/defaultMainFile
1 parent 3550b26 commit 4c322b6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
export { default as Repl } from './Repl.vue'
2-
export { default as Preview } from './output/Preview.vue'
2+
export {
3+
default as Preview,
4+
UpdateFlag as PreviewUpdateFlag,
5+
} from './output/Preview.vue'
36
export { default as MonacoEditor } from './editor/MonacoEditor.vue'
4-
export { ReplStore, File } from './store'
7+
export { ReplStore, File, defaultMainFile } from './store'
58
export { compileFile } from './transform'
69
export type { Props as ReplProps } from './Repl.vue'
710
export type { Store, StoreOptions, SFCOptions, StoreState } from './store'

src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { OutputModes } from './output/types'
1111
import { Selection } from 'monaco-editor-core'
1212

13-
const defaultMainFile = 'src/App.vue'
13+
export const defaultMainFile = 'src/App.vue'
1414

1515
export const importMapFile = 'import-map.json'
1616

0 commit comments

Comments
 (0)