Merge pull request #635 from sveltejs/gh-634

correctly handle empty <style> tag
pull/636/head
Rich Harris 7 years ago committed by GitHub
commit 928f6030d1

@ -222,7 +222,7 @@ export default function dom(
this._yield = options._yield;
this._torndown = false;
${parsed.css &&
${generator.css &&
options.css !== false &&
`if ( !document.getElementById( ${JSON.stringify(
generator.cssId + '-style'

@ -1,6 +1,6 @@
const start = /\n(\t+)/;
export default function deindent(strings: string[], ...values: any[]) {
export default function deindent(strings: TemplateStringsArray, ...values: any[]) {
const indentation = start.exec(strings[0])[1];
const pattern = new RegExp(`^${indentation}`, 'gm');

@ -0,0 +1,3 @@
export default {
html: '',
};
Loading…
Cancel
Save