Skip to content

Commit

Permalink
add back
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts committed Oct 22, 2023
1 parent f918d95 commit 9004a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/vite/vite-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ export class ViteManager {
};
this.options.reader.listeners.add(this.#readerListener);
try {
// PostCSS requires the current directory to change because it relies
// on the `import-cwd` package to resolve plugins.
process.chdir(this.options.rootDir);
const configFromProject = await readConfig(
this.options.rootDir,
viteLogLevelFromPinoLogger(this.options.logger)
Expand Down

0 comments on commit 9004a68

Please sign in to comment.