Only hint modules once
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Cadence Ember 2020-11-05 17:48:13 +13:00
parent 017f30be65
commit 1aebc2c100
Signed by: cadence
GPG key ID: BC1C2C61CF521B17

View file

@ -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
}