Skip to content

Commit

Permalink
Bump ComponentizeJS to optionally enable AoT (#288)
Browse files Browse the repository at this point in the history
* Bump ComponentizeJS to optionally enable AoT

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 <[email protected]>

* make aot compilation opt in

Signed-off-by: karthik2804 <[email protected]>

---------

Signed-off-by: karthik2804 <[email protected]>
  • Loading branch information
karthik2804 authored Sep 6, 2024
1 parent 340f62d commit b399cc8
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 b399cc8

Please sign in to comment.