From ee10a4f14b45dad10e5ba0e6f6ea9e495f1c7688 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 9 Mar 2024 13:41:37 +0800 Subject: [PATCH] fix(node/types): resolve.alias should be optional --- examples/basic-vue/build.js | 3 +-- packages/node/src/options/input-options.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/basic-vue/build.js b/examples/basic-vue/build.js index 38a959fc6c8b..d8ca445c4a38 100644 --- a/examples/basic-vue/build.js +++ b/examples/basic-vue/build.js @@ -11,8 +11,7 @@ const build = await rolldown.rolldown({ cwd: dirname, resolve: { conditionNames: ['node', 'import'], - alias: {}, - } + }, }) await build.write() diff --git a/packages/node/src/options/input-options.ts b/packages/node/src/options/input-options.ts index 26e7ce0f82a9..e472f0340a0e 100644 --- a/packages/node/src/options/input-options.ts +++ b/packages/node/src/options/input-options.ts @@ -16,7 +16,7 @@ export interface InputOptions { } export type RolldownResolveOptions = Omit & { - alias: Record + alias?: Record } export type RolldownNormalizedInputOptions = NormalizedInputOptions & {