File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
etc/api/angular_devkit/build_optimizer/src
packages/angular_devkit/build_optimizer Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export default function buildOptimizerLoader(this: {
1616 } ;
1717 cacheable ( ) : void ;
1818 callback ( error ?: Error | null , content ?: string , sourceMap ?: unknown ) : void ;
19+ getOptions ( ) : unknown ;
1920} , content : string , previousSourceMap : RawSourceMap ) : void ;
2021
2122export declare function getPrefixClassesTransformer ( ) : ts . TransformerFactory < ts . SourceFile > ;
Original file line number Diff line number Diff line change 99 "build-optimizer" : " ./src/build-optimizer/cli.js"
1010 },
1111 "dependencies" : {
12- "loader-utils" : " 2.0.0" ,
1312 "source-map" : " 0.7.3" ,
1413 "tslib" : " 2.2.0" ,
1514 "typescript" : " 4.2.4"
Original file line number Diff line number Diff line change 77 */
88import { RawSourceMap } from 'source-map' ;
99import { sources } from 'webpack' ;
10- const loaderUtils = require ( 'loader-utils' ) ;
11-
1210import { buildOptimizer } from './build-optimizer' ;
1311
1412interface BuildOptimizerLoaderOptions {
@@ -26,6 +24,7 @@ export default function buildOptimizerLoader(
2624 _module : { factoryMeta : { skipBuildOptimizer ?: boolean ; sideEffectFree ?: boolean } } ;
2725 cacheable ( ) : void ;
2826 callback ( error ?: Error | null , content ?: string , sourceMap ?: unknown ) : void ;
27+ getOptions ( ) : unknown ;
2928 } ,
3029 content : string ,
3130 previousSourceMap : RawSourceMap ,
@@ -43,7 +42,7 @@ export default function buildOptimizerLoader(
4342 return ;
4443 }
4544
46- const options : BuildOptimizerLoaderOptions = loaderUtils . getOptions ( this ) || { } ;
45+ const options = ( this . getOptions ( ) || { } ) as BuildOptimizerLoaderOptions ;
4746
4847 const boOutput = buildOptimizer ( {
4948 content,
You can’t perform that action at this time.
0 commit comments