We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74af8d0 commit c915342Copy full SHA for c915342
src/builders/rollup/build.ts
@@ -83,7 +83,15 @@ export async function rollupBuild(ctx: BuildContext): Promise<void> {
83
dts(ctx.options.rollup.dts),
84
removeShebangPlugin(),
85
ctx.options.rollup.emitCJS && fixCJSExportTypePlugin(),
86
- ].filter(Boolean);
+ ].filter(
87
+ (plugin) =>
88
+ /**
89
+ * Issue: #396
90
+ * rollup-plugin-dts conflicts with rollup-plugin-commonjs:
91
+ * https://github.com/Swatinem/rollup-plugin-dts?tab=readme-ov-file#what-to-expect
92
+ */
93
+ plugin && (!("name" in plugin) || plugin.name !== "commonjs"),
94
+ );
95
96
await ctx.hooks.callHook("rollup:dts:options", ctx, rollupOptions);
97
const typesBuild = await rollup(rollupOptions);
0 commit comments