Skip to content

Commit

Permalink
Fix posthtml breaking svgs (#2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeMoorJasper authored and devongovett committed Dec 11, 2018
1 parent 7a540fc commit 7db9fdd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/core/parcel-bundler/src/transforms/posthtml.js
Expand Up @@ -7,7 +7,6 @@ async function parse(code, asset) {
if (!config) {
config = {};
}
config = Object.assign({lowerCaseAttributeNames: true}, config);
return posthtmlParse(code, config);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/core/parcel-bundler/test/html.js
Expand Up @@ -320,7 +320,7 @@ describe('html', function() {
// minifySvg is false
assert(
html.includes(
'<svg version="1.1" baseprofile="full" width="300" height="200" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="red"></rect><circle cx="150" cy="100" r="80" fill="green"></circle><text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text></svg>'
'<svg version="1.1" baseProfile="full" width="300" height="200" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="red"></rect><circle cx="150" cy="100" r="80" fill="green"></circle><text x="150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text></svg>'
)
);
});
Expand Down

0 comments on commit 7db9fdd

Please sign in to comment.