diff --git a/src/generator.ts b/src/generator.ts index 65a297e..c98712d 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -837,11 +837,21 @@ export class Generator { for (let dep of preloadDeps.sort()) { if (first || whitespace) preloads += newlineTab; if (first) first = false; - preloads += ``; + : dep; + preloads += ``; } } diff --git a/test/html/preload.test.js b/test/html/preload.test.js index d00be51..48db89d 100644 --- a/test/html/preload.test.js +++ b/test/html/preload.test.js @@ -105,7 +105,7 @@ assert.strictEqual( "\n" + `\n` + `\n` + - '\n' + + `\n` + '\n"