Skip to content

Commit b399cc8

Browse files
authored
Bump ComponentizeJS to optionally enable AoT (#288)
* 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]>
1 parent 340f62d commit b399cc8

File tree

12 files changed

+930
-47
lines changed

12 files changed

+930
-47
lines changed

bin/j2w.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const args = yargs(hideBin(process.argv))
3030
describe: "Spin trigger to target",
3131
demandOption: true
3232
})
33+
.option('aot', {
34+
describe: "Enable Ahead of Time compilation",
35+
type: 'boolean',
36+
})
3337
.argv;
3438

3539
const src = args.input;
@@ -48,6 +52,7 @@ const { component } = await componentize(source, {
4852
worldName: args.triggerType,
4953
disableFeatures: [],
5054
enableFeatures: ["http"],
55+
enableAot: args.aot
5156
});
5257

5358
await writeFile(args.output, component);

0 commit comments

Comments
 (0)