Remove esm/doc.mjs (#12166)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-01-27 21:14:31 +08:00
1 parent e73ee65d97
commit 9106e7ea13
2 files changed
+7 -7

No files matched your search

+7 -5
View File
@@ -190,11 +190,13 @@ async function* getEsbuildOptions(bundle, buildOptions) {
format: "umd",
};
yield {
...esbuildOptions,
outfile: `esm/${bundle.output.replace(".js", ".mjs")}`,
format: "esm",
};
if (/^(?:standalone|parser-.*)\.js$/.test(bundle.output)) {
yield {
...esbuildOptions,
outfile: `esm/${bundle.output.replace(".js", ".mjs")}`,
format: "esm",
};
}
} else {
esbuildOptions.external.push(
...builtinModules,
-2
View File
@@ -111,8 +111,6 @@ const parsers = [
},
{
input: "src/language-css/parser-postcss.js",
// postcss has dependency cycles that don't work with rollup
bundler: "webpack",
replace: {
// `postcss-values-parser` uses constructor.name, it will be changed by rollup or terser
// https://github.com/shellscape/postcss-values-parser/blob/c00f858ab8c86ce9f06fdb702e8f26376f467248/lib/parser.js#L499