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,