From 7f29cad9b9113044dc5adca21cb5c614ffd731e0 Mon Sep 17 00:00:00 2001 From: chengkai48 Date: Wed, 24 Jul 2024 14:20:43 +0800 Subject: [PATCH] fix:change the test table of contents --- {src/test => test}/toTree.spec.ts | 0 tsconfig.json | 2 +- vite.config.ts | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) rename {src/test => test}/toTree.spec.ts (100%) diff --git a/src/test/toTree.spec.ts b/test/toTree.spec.ts similarity index 100% rename from src/test/toTree.spec.ts rename to test/toTree.spec.ts diff --git a/tsconfig.json b/tsconfig.json index 596e240..266a01f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,6 +29,6 @@ "isolatedModules": false }, - "include": ["src/**/*"], + "include": ["src/**/*", "test/**/*"], "exclude": ["node_modules", "dist"] } diff --git a/vite.config.ts b/vite.config.ts index 229e066..e0f4bba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,6 +24,9 @@ export default defineConfig((_) => { emptyOutDir: true, sourcemap: dev ? 'inline' : false, rollupOptions: { + external: (id) => { + return id.includes('spec.') || id.includes('test.') || id.includes('node_modules') + }, output: { dynamicImportInCjs: false, inlineDynamicImports: true,