Skip to content

Commit

Permalink
fix: exclude /src/app/** in vite-plugin (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe authored Dec 2, 2024
1 parent 5a368c3 commit 929493a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default (options: Options): Plugin => {
return devServer({
adapter: options?.adapter,
entry: options.entry,
exclude: options?.exclude ?? [...defaultOptions.exclude, '/assets/**', '/app/**'],
exclude: options?.exclude ?? [
...defaultOptions.exclude,
'/assets/**',
'/app/**',
'/src/app/**',
],
injectClientScript: false,
loadModule: async (server, entry) => {
const appModule = await server.ssrLoadModule(entry)
Expand Down

0 comments on commit 929493a

Please sign in to comment.