Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
nani
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Jun 6, 2024
1 parent f09f1a5 commit 52d4eb9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/services/Bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ export default class Bundler {
);

result = main.concat(data);

if (packaged) {
const log = data.findIndex((file) => {
file.name.endsWith(".log");
});
result.splice(log, 1);
}
} else {
result = main.concat(filtered);
}
Expand Down Expand Up @@ -111,7 +104,7 @@ export default class Bundler {
}

const name = bundle.getMetadata().title;
return await this.bundleContent(name, data);
return this.bundleContent(name, data);
}

/**
Expand Down Expand Up @@ -149,8 +142,12 @@ export default class Bundler {
const binary = value.binary;
const assets = value.assets;

const combined = await Promise.all(
[binary, assets].map(async (blob) => blob.arrayBuffer())
);

const file = new File(
[binary, assets],
combined,
`${name}.${this.extensions[key as keyof typeof this.extensions]}`
);

Expand Down

0 comments on commit 52d4eb9

Please sign in to comment.