Skip to content

Commit 96dfbab

Browse files
committed
fix: remove esm module build from tsdown to avoid useStackApp bugs
1 parent 612cb71 commit 96dfbab

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

configs/tsdown/js-library.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,7 @@ export default function createJsLibraryTsupConfig(_options: { barrelFiles?: stri
7575
external: true,
7676
};
7777
},
78-
},
79-
{
80-
name: 'stackframe: write esm package.json',
81-
generateBundle(options) {
82-
if (options.dir?.endsWith('/esm') || options.dir === 'dist/esm') {
83-
this.emitFile({
84-
type: 'asset',
85-
fileName: 'package.json',
86-
source: JSON.stringify({ type: 'module' }) + '\n',
87-
});
88-
}
89-
},
90-
},
78+
}
9179
],
9280
});
9381
}

0 commit comments

Comments
 (0)