Skip to content

Commit

Permalink
fix(vite): set root to srcDir (nuxt#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Oct 14, 2021
1 parent dce8379 commit b2c74d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function bundle (nuxt: Nuxt) {
config: vite.mergeConfig(
nuxt.options.vite as any || {},
{
root: nuxt.options.rootDir,
root: nuxt.options.srcDir,
mode: nuxt.options.dev ? 'development' : 'production',
logLevel: 'warn',
define: {
Expand Down

0 comments on commit b2c74d7

Please sign in to comment.