Skip to content

Commit 95dfdd0

Browse files
committed
refactor: update options due to rolldown breaking changes
1 parent f005184 commit 95dfdd0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/bin/build.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,22 @@ export async function build(options: Options): Promise<BuildStats> {
9797
plugins: isChunk
9898
? entry.plugins
9999
: entry.plugins || [
100-
dtsPlugin({ ...entry.dtsPlugin, emitDtsOnly: true }),
100+
dtsPlugin({
101+
...entry.dtsPlugin,
102+
emitDtsOnly: true,
103+
banner: entry.banner,
104+
footer: entry.footer,
105+
}),
101106
],
102107
onLog: (level, log, handler) => {
103108
if (entry.onLog) entry.onLog(level, log, handler, buildLogs)
104109
else buildLogs.push({ level, log })
105110
},
106111
resolve: entry.resolve,
107-
define: entry.define,
108-
inject: entry.inject,
112+
transform: {
113+
define: entry.define,
114+
inject: entry.inject,
115+
},
109116
tsconfig: entry.tsconfig || tsconfig,
110117
} satisfies InputOptions
111118

0 commit comments

Comments
 (0)