correctly handle empty <style> tag (#634)

pull/635/head
Conduitry 8 years ago
parent 61f5cbef54
commit 051534eeae

@ -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