Finish build from yesterday.

This commit is contained in:
Joshua Bemenderfer
2023-01-30 07:56:54 -05:00
parent b87fdfbd83
commit b02e742c89
3 changed files with 38 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ export async function parse(lines) {
if (match('version')) structure.version = tail().trim()
if (match('license')) structure.license = tail().trim()
// FIXME: Order of operations causes other parts to break if this doesn't run first?!
if (match('exports')) structure.exports = await parseObjectKV(null, async () => {
if (match('exports')) structure.exports = await buildObject([], async () => {
const section = { import: null, require: null }
await each(() => {