From a0033d91126ea9054ca3c54fce9a1f16bb6bdf98 Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Wed, 1 Mar 2023 23:57:11 -0500 Subject: [PATCH] Fix minification of SVG template literals (#15670) --- build-scripts/bundle.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-scripts/bundle.js b/build-scripts/bundle.js index c1e2ef1d10..c02e03e8fc 100644 --- a/build-scripts/bundle.js +++ b/build-scripts/bundle.js @@ -117,7 +117,11 @@ module.exports.babelOptions = ({ latestBuild, isProdBuild }) => ({ "template-html-minifier", { modules: { - lit: ["html", "svg", { name: "css", encapsulation: "style" }], + lit: [ + "html", + { name: "svg", encapsulation: "svg" }, + { name: "css", encapsulation: "style" }, + ], "@polymer/polymer/lib/utils/html-tag": ["html"], }, strictCSS: true,