From a54aba2f7f91cb90eae3fa79db12e727a168725f Mon Sep 17 00:00:00 2001 From: Naily Date: Sun, 10 Nov 2024 20:55:33 +0800 Subject: [PATCH] feat: add comment --- .vscode/settings.json | 1 + vite.config.ts | 5 +++++ 2 files changed, 6 insertions(+) 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({