Skip to content

Commit

Permalink
refactor(platform-browser-dynamic): remove private export of `Resourc…
Browse files Browse the repository at this point in the history
…eLoaderImpl` (#44267)

This type was exported for the ViewEngine compiler as it needed to
reference the class in its DI codegen. This is no longer a requirement
with Ivy, hence the private export can be removed.

This change prevents an import of `@angular/compiler` to be referenced
in the .d.ts file of `@angular/platform-browser-dynamic`, which is
beneficial for application compilations as that prevents the
`@angular/compiler` .d.ts files from being included in the `ts.Program`
of an application.

Closes #44157.

PR Close #44267
  • Loading branch information
JoostK authored and dylhunn committed Nov 29, 2021
1 parent 47f1c0f commit 1284d00
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/platform-browser-dynamic/src/private_export.ts
Expand Up @@ -8,4 +8,3 @@

export {platformCoreDynamic as ɵplatformCoreDynamic} from './platform_core_dynamic';
export {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
export {ResourceLoaderImpl as ɵResourceLoaderImpl} from './resource_loader/resource_loader_impl';

0 comments on commit 1284d00

Please sign in to comment.