Fix bundled index.cjs (#13627)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-10-13 17:05:20 +08:00
1 parent c89642d066
commit df28f23429
3 files changed
+62 -46

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ function getEsbuildOptions({ file, files, shouldCollectLicenses, cliOptions }) {
let output = bundle.output.file;
if (
file.output.file === "index.cjs" &&
bundle.output.file === "esm/doc.mjs"
bundle.output.file === "doc.mjs"
) {
output = "doc.js";
}