dial up the minification of MDX output a bit more

This commit is contained in:
2022-01-24 13:58:27 -05:00
parent 2d9702f779
commit 5847fd82b6
4 changed files with 104 additions and 101 deletions
+4 -1
View File
@@ -86,8 +86,11 @@ export const getNote = async (slug: string): Promise<NoteType> => {
// ...so do it manually (and conservatively) with terser for now.
compiledSource: (
await minify(source.compiledSource, {
ecma: 2018,
module: true,
parse: { bare_returns: true },
mangle: false,
compress: { defaults: true },
sourceMap: false,
})
).code,
},