File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
packages/angular/build/src Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 1313 * their existence may change in any future version.
1414 */
1515
16+ import {
17+ CompilerPluginOptions ,
18+ createCompilerPlugin as internalCreateCompilerPlugin ,
19+ } from './tools/esbuild/angular/compiler-plugin' ;
20+ import { ComponentStylesheetBundler } from './tools/esbuild/angular/component-stylesheets' ;
21+ import { BundleStylesheetOptions } from './tools/esbuild/stylesheets/bundle-options' ;
22+
1623// Builders
1724export { buildApplicationInternal } from './builders/application' ;
1825export type { ApplicationBuilderInternalOptions } from './builders/application/options' ;
@@ -29,7 +36,20 @@ export { SassWorkerImplementation } from './tools/sass/sass-service';
2936export { SourceFileCache } from './tools/esbuild/angular/source-file-cache' ;
3037export { createJitResourceTransformer } from './tools/angular/transformers/jit-resource-transformer' ;
3138export { JavaScriptTransformer } from './tools/esbuild/javascript-transformer' ;
32- export { createCompilerPlugin } from './tools/esbuild/angular/compiler-plugin' ;
39+
40+ export function createCompilerPlugin (
41+ pluginOptions : CompilerPluginOptions ,
42+ styleOptions : BundleStylesheetOptions & { inlineStyleLanguage : string } ,
43+ ) : import ( 'esbuild' ) . Plugin {
44+ return internalCreateCompilerPlugin (
45+ pluginOptions ,
46+ new ComponentStylesheetBundler (
47+ styleOptions ,
48+ styleOptions . inlineStyleLanguage ,
49+ pluginOptions . incremental ,
50+ ) ,
51+ ) ;
52+ }
3353
3454// Utilities
3555export * from './utils/bundle-calculator' ;
You can’t perform that action at this time.
0 commit comments