Use ESM version of parsers in bundles (#13505)
This commit is contained in:
1 parent
1569db783b
commit
08620b41eb
1 file changed
+4
@@ -106,6 +106,10 @@ function* getEsbuildOptions(bundle, buildOptions) {
|
||||
output = "./esm/doc.mjs";
|
||||
}
|
||||
|
||||
if (output.startsWith("./parser-")) {
|
||||
output = `./esm/${output.slice(2).replace(".js", ".mjs")}`;
|
||||
}
|
||||
|
||||
replaceModule.push({ module: input, external: output });
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user