Skip to content

Commit

Permalink
Bump ComponentizeJS to optionally enable AoT
Browse files Browse the repository at this point in the history
This PR updates the following
- updates the ComponentizeJS dependency to bring in AoT using weval.
- Bumps the package version in preparation for a release.
- Updates the templates and test to be able to use AoT and the  newer
  package.

Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
  • Loading branch information
karthik2804 committed Sep 6, 2024
1 parent 340f62d commit 84bcc80
Show file tree
Hide file tree
Showing 12 changed files with 930 additions and 47 deletions.
5 changes: 5 additions & 0 deletions bin/j2w.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const args = yargs(hideBin(process.argv))
describe: "Spin trigger to target",
demandOption: true
})
.option('aot', {
describe: "Enable Ahead of Time compilation",
type: 'boolean',
})
.argv;

const src = args.input;
Expand All @@ -48,6 +52,7 @@ const { component } = await componentize(source, {
worldName: args.triggerType,
disableFeatures: [],
enableFeatures: ["http"],
enableAot: args.aot
});

await writeFile(args.output, component);
Expand Down
Loading

0 comments on commit 84bcc80

Please sign in to comment.