From 93081b990921050ce5261db5fff29c6e4c1d412e Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 4 Feb 2021 11:31:29 +0100 Subject: [PATCH] not legacy anymore, is it? --- scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 94a98ab..498bab3 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -56,7 +56,7 @@ async function build() { const assets = new AssetMap(targetDir); const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images")); assets.addSubMap(imageAssets); - await assets.write(`bundle.js`, await buildJsLegacy("src/main.js", assets, ["src/polyfill.js"])); + await assets.write(`bundle.js`, await buildJs("src/main.js", assets, ["src/polyfill.js"])); await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets)); await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients())); await assets.writeUnhashed("index.html", await buildHtml(assets)); @@ -88,7 +88,7 @@ function createReplaceUrlPlugin(assets) { return replace(replacements); } -async function buildJsLegacy(mainFile, assets, extraFiles = []) { +async function buildJs(mainFile, assets, extraFiles = []) { // compile down to whatever IE 11 needs const babelPlugin = babel.babel({ babelHelpers: 'bundled',