[skip ci] plugin guard

This commit is contained in:
Brahim Hadriche committed 2026-06-12 15:12:36 -04:00
1 parent c0dce836cf
commit 35b38c7cd8
17 files changed
+97 -15

No files matched your search

+2 -1
View File
@@ -17,6 +17,7 @@ import {
} from 'brighterscript';
import { RawCodeStatement } from './Classes/RawCodeStatement';
import { exitOnCriticalErrors } from './critical-exit';
// The plugin processes the file that includes the Init function, not the file that includes the @oninit functions
// This is because the modifications will be made to the Init function.
@@ -209,5 +210,5 @@ export class OnInitPlugin implements CompilerPlugin {
}
export default () => {
return new OnInitPlugin();
return exitOnCriticalErrors(new OnInitPlugin());
};