From f22d7b078034dbd2ca3b26a051b7378f97f18715 Mon Sep 17 00:00:00 2001 From: DeMoorJasper Date: Thu, 6 Dec 2018 16:50:51 +0100 Subject: [PATCH] Fix posthtml breaking svgs --- packages/core/parcel-bundler/src/transforms/posthtml.js | 1 - packages/core/parcel-bundler/test/html.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/parcel-bundler/src/transforms/posthtml.js b/packages/core/parcel-bundler/src/transforms/posthtml.js index e65aee23939..43ef542977d 100644 --- a/packages/core/parcel-bundler/src/transforms/posthtml.js +++ b/packages/core/parcel-bundler/src/transforms/posthtml.js @@ -7,7 +7,6 @@ async function parse(code, asset) { if (!config) { config = {}; } - config = Object.assign({lowerCaseAttributeNames: true}, config); return posthtmlParse(code, config); } diff --git a/packages/core/parcel-bundler/test/html.js b/packages/core/parcel-bundler/test/html.js index 86576636b2e..ed3962951e4 100644 --- a/packages/core/parcel-bundler/test/html.js +++ b/packages/core/parcel-bundler/test/html.js @@ -320,7 +320,7 @@ describe('html', function() { // minifySvg is false assert( html.includes( - 'SVG' + 'SVG' ) ); });