Skip to content

Commit 53bea30

Browse files
committed
make --aot hard error and also hidden
Signed-off-by: Karthik Ganeshram <[email protected]>
1 parent da0465f commit 53bea30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/build-tools/src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export function getCliArgs(): CliArgs {
2323
.option('aot', {
2424
describe: 'Enable Ahead of Time compilation',
2525
type: 'boolean',
26+
hidden: true,
2627
})
2728
.option('debug', {
2829
alias: 'd',

packages/build-tools/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ async function main() {
8787

8888
// if aot is enabled, warn that it has been temporarily disabled
8989
if (CliArgs.aot) {
90-
console.warn(
91-
'Warning: AOT compilation is temporarily disabled due to issues with componentize-js. Proceeding without AOT. It may be removed in future releases.',
90+
throw new Error(
91+
'AOT compilation is currently unavailable. Remove the `aot` option to proceed.',
9292
);
93-
CliArgs.aot = false;
9493
}
9594

9695
const { component } = await componentize({

0 commit comments

Comments
 (0)