Skip to content

Commit

Permalink
fix: merge svelte/vite alias
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoliradev committed Jan 22, 2025
1 parent 10717e9 commit 9b2e325
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/cli/methods/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ const viteAliases = await loadConfigFromFile(
{ command: 'build', mode: 'production' },
getPath('vite.config'),
rootDir
).then(result =>
result?.config?.resolve?.alias as Record<string, string>
);
).then((result) => result?.config?.resolve?.alias as Record<string, string>);

const svelteConfig = path.resolve(rootDir, 'svelte.config.js');
const svelteAliases = fs.existsSync(svelteConfig)
Expand Down

0 comments on commit 9b2e325

Please sign in to comment.