From 1aebc2c100ae8e53098a873146a2a74a683f64ae Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 5 Nov 2020 17:48:13 +1300 Subject: [PATCH] Only hint modules once --- build.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.js b/build.js index 76242d6..964af20 100644 --- a/build.js +++ b/build.js @@ -147,7 +147,7 @@ async function addJS(sourcePath, targetPath) { async function addBundle(sourcePath, targetPath, module = false) { let opts = {} - if(module) opts.standalone = sourcePath + if (module) opts.standalone = sourcePath const content = await new Promise(resolve => { browserify([], opts) .add(pj(".", sourcePath)) @@ -175,7 +175,6 @@ async function addBundle(sourcePath, targetPath, module = false) { }) const writer = fs.promises.writeFile(pj(buildDir, targetPath), content) staticFiles.set(sourcePath, `${targetPath}?static=${hash(content)}`) - runHint(sourcePath, content) await writer }