Skip to content

Commit 929493a

Browse files
authored
fix: exclude /src/app/** in vite-plugin (#41)
1 parent 5a368c3 commit 929493a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vite-plugin.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ export default (options: Options): Plugin => {
2626
return devServer({
2727
adapter: options?.adapter,
2828
entry: options.entry,
29-
exclude: options?.exclude ?? [...defaultOptions.exclude, '/assets/**', '/app/**'],
29+
exclude: options?.exclude ?? [
30+
...defaultOptions.exclude,
31+
'/assets/**',
32+
'/app/**',
33+
'/src/app/**',
34+
],
3035
injectClientScript: false,
3136
loadModule: async (server, entry) => {
3237
const appModule = await server.ssrLoadModule(entry)

0 commit comments

Comments
 (0)