File tree 4 files changed +11
-3
lines changed
src/components/monaco-editor
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codeplayer" ,
3
- "version" : " 0.0.1-beta.2 " ,
3
+ "version" : " 0.0.1-beta.3 " ,
4
4
"main" : " ./dist/index.js" ,
5
5
"module" : " ./dist/index.mjs" ,
6
6
"typings" : " ./types/index.d.ts" ,
64
64
"onigasm" : " ^2.2.5" ,
65
65
"path-browserify" : " ^1.0.1" ,
66
66
"tippy.js" : " ^6.3.7"
67
+ },
68
+ "peerDependencies" : {
69
+ "vue" : " ^3.2.0"
67
70
}
68
71
}
Original file line number Diff line number Diff line change 1
1
import { jsDelivrUriBase } from '@volar/cdn' ;
2
2
import * as volar from '@volar/monaco' ;
3
3
import { editor , languages , Uri } from 'monaco-editor-core' ;
4
+ /* @vite -ignore */
4
5
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker' ;
5
6
import * as onigasm from 'onigasm' ;
6
7
import onigasmWasm from 'onigasm/lib/onigasm.wasm?url' ;
7
8
import { watchEffect } from 'vue' ;
8
9
import { getOrCreateModel } from './utils' ;
9
10
import { Store } from '@/store' ;
10
11
import type { CreateData } from './vue.worker' ;
12
+ /* @vite -ignore */
11
13
import vueWorker from './vue.worker?worker' ;
12
14
import { getFileLanguage } from '@/compiler' ;
13
15
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ export default defineConfig({
25
25
} ,
26
26
} ,
27
27
} ,
28
+ define : {
29
+ 'process.env.NODE_ENV' : '"production"' ,
30
+ } ,
28
31
base : './' ,
29
32
build : {
30
33
emptyOutDir : true ,
Original file line number Diff line number Diff line change 3
3
</template >
4
4
5
5
<script setup lang="ts">
6
- import CodePlayer , { CodePlayerOptions } from ' ../../core/src/index' ;
7
- // import CodePlayer from 'codeplayer ';
6
+ // import CodePlayer, { CodePlayerOptions } from '../../core/src/index';
7
+ import CodePlayer , { CodePlayerOptions } from ' ../../core ' ;
8
8
9
9
const options: CodePlayerOptions = {
10
10
appType: ' vue3' ,
You can’t perform that action at this time.
0 commit comments