diff --git a/.vscode/settings.json b/.vscode/settings.json index dab6e91..324b029 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,7 @@ { "cSpell.words": [ "antfu", + "buildin", "demi", "dicom", "iconify", diff --git a/vite.config.ts b/vite.config.ts index 2d579c4..595616d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -32,15 +32,20 @@ export default defineConfig({ outDir: './dist/frontend', }, + // Disable esbuild when using swc esbuild: false, plugins: [ + // https://github.com/nailyjs/core NailyRpc({ build: { on: false, }, }), + // Internal swc plugin, fork from https://github.com/unplugin/unplugin-swc + // - esbuild doesn't support `emitDecoratorMetadata` to reflect types in runtime, so we need it + // - unplugin-swc has some problems to import, so we forked it and buildin to the rpc plugin swc.vite(defaultSwcOptions), VueMacros({