refactor(jsx-explorer): dogfooding of JSX syntax

This commit is contained in:
三咲智子 Kevin Deng
2024-01-24 02:42:21 +08:00
parent 9d97341d04
commit d99206b059
6 changed files with 205 additions and 119 deletions

View File

@ -1,5 +1,7 @@
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import VueJSX from '@vitejs/plugin-vue-jsx';
import MonacoEditorPlugin from 'vite-plugin-monaco-editor';
export default defineConfig({
resolve: {
@ -8,6 +10,11 @@ export default defineConfig({
},
},
plugins: [
VueJSX(),
// @ts-expect-error
(MonacoEditorPlugin.default as typeof MonacoEditorPlugin)({
languageWorkers: ['editorWorkerService', 'typescript'],
}),
nodePolyfills({
globals: {
process: true,