In ViewEngine we were only generating code for exported classes, however with Ivy we do it no matter whether the class has been exported or not. These changes add an extra flag that allows consumers to opt into the ViewEngine behavior. The flag works by treating non-exported classes as if they're set to `jit: true`. Fixes #33724. PR Close #33921 PR Close #34340
This commit is contained in:
@ -391,6 +391,12 @@ export interface CompilerOptions extends ts.CompilerOptions {
|
||||
* support these future imports.
|
||||
*/
|
||||
generateDeepReexports?: boolean;
|
||||
|
||||
/**
|
||||
* Whether the compiler should avoid generating code for classes that haven't been exported.
|
||||
* This is only active when building with `enableIvy: true`. Defaults to `true`.
|
||||
*/
|
||||
compileNonExportedClasses?: boolean;
|
||||
}
|
||||
|
||||
export interface CompilerHost extends ts.CompilerHost {
|
||||
|
Reference in New Issue
Block a user