Skip to content

Commit 378f59f

Browse files
committed
exclude examples from build
1 parent 434d879 commit 378f59f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vite.config.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="vitest" />
22
import path from "path";
3+
import { fileURLToPath } from 'node:url';
34
import { defineConfig } from "vite";
45

56
const fileName = {
@@ -20,6 +21,11 @@ export default defineConfig({
2021
fileName: (format) => fileName[format],
2122
},
2223
sourcemap: true,
24+
rollupOptions: {
25+
external: [
26+
fileURLToPath(new URL('examples', import.meta.url))
27+
]
28+
}
2329
},
2430
test: {
2531

0 commit comments

Comments
 (0)