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: {
16
16
} ;
17
17
cacheable ( ) : void ;
18
18
callback ( error ?: Error | null , content ?: string , sourceMap ?: unknown ) : void ;
19
+ getOptions ( ) : unknown ;
19
20
} , content : string , previousSourceMap : RawSourceMap ) : void ;
20
21
21
22
export declare function getPrefixClassesTransformer ( ) : ts . TransformerFactory < ts . SourceFile > ;
Original file line number Diff line number Diff line change 9
9
"build-optimizer" : " ./src/build-optimizer/cli.js"
10
10
},
11
11
"dependencies" : {
12
- "loader-utils" : " 2.0.0" ,
13
12
"source-map" : " 0.7.3" ,
14
13
"tslib" : " 2.2.0" ,
15
14
"typescript" : " 4.2.4"
Original file line number Diff line number Diff line change 7
7
*/
8
8
import { RawSourceMap } from 'source-map' ;
9
9
import { sources } from 'webpack' ;
10
- const loaderUtils = require ( 'loader-utils' ) ;
11
-
12
10
import { buildOptimizer } from './build-optimizer' ;
13
11
14
12
interface BuildOptimizerLoaderOptions {
@@ -26,6 +24,7 @@ export default function buildOptimizerLoader(
26
24
_module : { factoryMeta : { skipBuildOptimizer ?: boolean ; sideEffectFree ?: boolean } } ;
27
25
cacheable ( ) : void ;
28
26
callback ( error ?: Error | null , content ?: string , sourceMap ?: unknown ) : void ;
27
+ getOptions ( ) : unknown ;
29
28
} ,
30
29
content : string ,
31
30
previousSourceMap : RawSourceMap ,
@@ -43,7 +42,7 @@ export default function buildOptimizerLoader(
43
42
return ;
44
43
}
45
44
46
- const options : BuildOptimizerLoaderOptions = loaderUtils . getOptions ( this ) || { } ;
45
+ const options = ( this . getOptions ( ) || { } ) as BuildOptimizerLoaderOptions ;
47
46
48
47
const boOutput = buildOptimizer ( {
49
48
content,
You can’t perform that action at this time.
0 commit comments