Skip to content

Commit 06cf7b3

Browse files
kl0tlerikd
authored andcommitted
Remove extraneous space when rendering JSExports
1 parent 41e6188 commit 06cf7b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Language/JavaScript/Pretty/Printer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ instance RenderJS JSImportSpecifier where
304304
(|>) pacc (JSImportSpecifierAs x1 annot x2) = pacc |> x1 |> annot |> "as" |> x2
305305

306306
instance RenderJS JSExportDeclaration where
307-
(|>) pacc (JSExport x1 s) = pacc |> " " |> x1 |> s
307+
(|>) pacc (JSExport x1 s) = pacc |> x1 |> s
308308
(|>) pacc (JSExportLocals xs semi) = pacc |> xs |> semi
309309
(|>) pacc (JSExportFrom xs from semi) = pacc |> xs |> from |> semi
310310

src/Language/JavaScript/Process/Minify.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ instance MinifyJS JSImportSpecifier where
310310
instance MinifyJS JSExportDeclaration where
311311
fix a (JSExportFrom x1 from _) = JSExportFrom (fix a x1) (fix a from) noSemi
312312
fix _ (JSExportLocals x1 _) = JSExportLocals (fix emptyAnnot x1) noSemi
313-
fix _ (JSExport x1 _) = JSExport (fixStmt emptyAnnot noSemi x1) noSemi
313+
fix _ (JSExport x1 _) = JSExport (fixStmt spaceAnnot noSemi x1) noSemi
314314

315315
instance MinifyJS JSExportClause where
316316
fix a (JSExportClause _ x1 _) = JSExportClause emptyAnnot (fixEmpty x1) a

0 commit comments

Comments
 (0)