Skip to content

Commit

Permalink
fix(node/types): resolve.alias should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 9, 2024
1 parent fb6ad03 commit ee10a4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/basic-vue/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const build = await rolldown.rolldown({
cwd: dirname,
resolve: {
conditionNames: ['node', 'import'],
alias: {},
}
},
})

await build.write()
2 changes: 1 addition & 1 deletion packages/node/src/options/input-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface InputOptions {
}

export type RolldownResolveOptions = Omit<ResolveOptions, 'alias'> & {
alias: Record<string, string>
alias?: Record<string, string>
}

export type RolldownNormalizedInputOptions = NormalizedInputOptions & {
Expand Down

0 comments on commit ee10a4f

Please sign in to comment.