Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 13, 2024
1 parent 070c58b commit 5a9c5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ const nodeConfig = defineConfig({
/^vite\//,
'rollup/parseAst',
/^tsx\//,
/^#/,
...Object.keys(pkg.dependencies),
...Object.keys(pkg.peerDependencies),
],
Expand Down
3 changes: 2 additions & 1 deletion packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,8 @@ async function bundleConfigFile(
fileName: string,
isESM: boolean,
): Promise<{ code: string; dependencies: string[] }> {
const isModuleSyncConditionEnabled = await import('#module-sync-enabled')
const isModuleSyncConditionEnabled = (await import('#module-sync-enabled'))
.default

const dirnameVarName = '__vite_injected_original_dirname'
const filenameVarName = '__vite_injected_original_filename'
Expand Down

0 comments on commit 5a9c5ec

Please sign in to comment.