diff --git a/packages/html/src/index.ts b/packages/html/src/index.ts
index bd10b6496..73cd7f1a1 100644
--- a/packages/html/src/index.ts
+++ b/packages/html/src/index.ts
@@ -91,13 +91,15 @@ const defaults: Required = {
};
export default function html(opts: RollupHtmlOptions = {}): Plugin {
- // const { attributes, fileName, meta, publicPath, template, title, addScriptsToHead } = Object.assign(
- // {},
- // defaults,
- // opts
- // );
- const { attributes, fileName, meta, publicPath, template, title }: Required =
- Object.assign({}, defaults, opts);
+ const {
+ addScriptsToHead,
+ attributes,
+ fileName,
+ meta,
+ publicPath,
+ template,
+ title
+ }: Required = Object.assign({}, defaults, opts);
return {
name: 'html',
@@ -122,12 +124,12 @@ export default function html(opts: RollupHtmlOptions = {}): Plugin {
const files = getFiles(bundle);
const source = await template({
attributes,
+ addScriptsToHead,
bundle,
files,
meta,
publicPath,
- title,
- addScriptsToHead
+ title
});
const htmlFile: EmittedAsset = {