Skip to content

Commit

Permalink
Remove esm/doc.mjs (prettier#12166)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 27, 2022
1 parent e73ee65 commit 9106e7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 7 additions & 5 deletions scripts/build/bundler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions scripts/build/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9106e7e

Please sign in to comment.