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

Commit

Permalink
fix: bytecode option is a boolean (#1554)
Browse files Browse the repository at this point in the history
The `bytecode` CLI flag is specified as a boolean option in the
arguments passed to `minimist`.

My formatter also removed a useless trailing space in the same file...
  • Loading branch information
paul-marechal authored Apr 1, 2022
1 parent edfcc7b commit 46b3aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/packer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function hasAnyStore(record: FileRecord) {
interface PackerOptions {
records: FileRecords;
entrypoint: string;
bytecode: string;
bytecode: boolean;
symLinks: SymLinks;
}

Expand Down Expand Up @@ -159,7 +159,7 @@ export default function packer({
}
}
const prelude =
`return (function (REQUIRE_COMMON, VIRTUAL_FILESYSTEM, DEFAULT_ENTRYPOINT, SYMLINKS, DICT, DOCOMPRESS) {
`return (function (REQUIRE_COMMON, VIRTUAL_FILESYSTEM, DEFAULT_ENTRYPOINT, SYMLINKS, DICT, DOCOMPRESS) {
${bootstrapText}${
log.debugMode ? diagnosticText : ''
}\n})(function (exports) {\n${commonText}\n},\n` +
Expand Down

0 comments on commit 46b3aa5

Please sign in to comment.