Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
"import": "./dist/codemirror-editor.js",
"require": null
},
"./core": {
"types": "./dist/core.d.ts",
"import": "./dist/core.js",
"require": null
},
"./package.json": "./package.json",
"./style.css": "./dist/vue-repl.css",
"./dist/style.css": "./dist/vue-repl.css"
Expand Down
14 changes: 14 additions & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export {
useStore,
File,
type SFCOptions,
type StoreState,
type Store,
type ReplStore,
} from './store'
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
export { compileFile } from './transform'
export type { Props as ReplProps } from './Repl.vue'
export type { SandboxProps } from './output/Sandbox.vue'
export type { OutputModes } from './types'
export { version as languageToolsVersion } from '@vue/language-service/package.json'
15 changes: 1 addition & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
export { default as Repl } from './Repl.vue'
export { default as Preview } from './output/Preview.vue'
export { default as Sandbox } from './output/Sandbox.vue'
export type { SandboxProps } from './output/Sandbox.vue'
export {
useStore,
File,
type SFCOptions,
type StoreState,
type Store,
type ReplStore,
} from './store'
export { useVueImportMap, mergeImportMap, type ImportMap } from './import-map'
export { compileFile } from './transform'
export type { Props as ReplProps } from './Repl.vue'
export type { OutputModes } from './types'
export { version as languageToolsVersion } from '@vue/language-service/package.json'
export * from './core'
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default mergeConfig(base, {
lib: {
entry: {
'vue-repl': './src/index.ts',
core: './src/core.ts',
'monaco-editor': './src/editor/MonacoEditor.vue',
'codemirror-editor': './src/editor/CodeMirrorEditor.vue',
},
Expand Down