Skip to content

Commit

Permalink
Build: Remove an extra new line in UMD bundle (#12467)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Mar 16, 2022
1 parent 9a07050 commit 4cae7e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/build/esbuild-plugins/umd.mjs
Expand Up @@ -118,10 +118,9 @@ export default function esbuildPluginUmd({ name }) {
fs.writeFileSync(
outfile,
intro +
text.slice(
expectedOutput.start.length,
-expectedOutput.end.length
) +
text
.slice(expectedOutput.start.length, -expectedOutput.end.length)
.trimEnd() +
outro
);
});
Expand Down

0 comments on commit 4cae7e1

Please sign in to comment.