There was an error while loading. Please reload this page.
1 parent 2bfb8c2 commit f4424feCopy full SHA for f4424fe
src/make.ts
@@ -103,7 +103,14 @@ export async function mkdist(
103
basename(output.path, extname(output.path)) + output.extension;
104
output.path = join(dirname(output.path), renamed);
105
// Avoid overriding files with original extension
106
- if (outputs.some((o) => o !== output && o.path === output.path)) {
+ if (
107
+ outputs.some(
108
+ (o) =>
109
+ o !== output &&
110
+ o.path === output.path &&
111
+ (!o.extension || o.extension === output.extension),
112
+ )
113
+ ) {
114
output.skip = true;
115
}
116
0 commit comments