Fix bundled index.cjs (#13627)
This commit is contained in:
1 parent
c89642d066
commit
df28f23429
3 files changed
+62
-46
No files matched your search
@@ -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";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user