diff --git a/lib/subfont.js b/lib/subfont.js index 4cdf4871..c9f75749 100644 --- a/lib/subfont.js +++ b/lib/subfont.js @@ -247,23 +247,6 @@ module.exports = async function subfont( relation.omitFunctionCall(); } - // Compress inserted javascript - const preloadPolyfillScripts = assetGraph.findRelations({ - type: 'HtmlScript', - to: { - isInline: true, - outgoingRelations: (relation) => relation.type === 'JavaScriptStaticUrl', - }, - }); - await assetGraph.compressJavaScript({ - type: 'JavaScript', - isLoaded: true, - outgoingRelations: (relation) => relation.type === 'JavaScriptStaticUrl', - }); - for (const relation of preloadPolyfillScripts) { - relation.inline(); - } - for (const asset of assetGraph.findAssets({ isDirty: true, isInline: false,