Rich message rendering #24

Merged
cadence merged 28 commits from rich-messages into princess 2020-11-07 10:46:48 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 1aebc2c100 - Show all commits

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
}