File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default class ExtractionCompiler implements Disposable {
1515 }
1616 ) {
1717 this . manager = new CatalogManager ( config , opts ) ;
18+ this [ Symbol . dispose ] = this [ Symbol . dispose ] . bind ( this ) ;
1819 this . installExitHandlers ( ) ;
1920 }
2021
Original file line number Diff line number Diff line change @@ -43,10 +43,13 @@ export default function extractionLoader(
4343 extractAllPromise = compiler . extractAll ( ) ;
4444 }
4545
46- extractor . extract ( this . resourcePath , source ) . then ( async ( result ) => {
47- if ( ! isDevelopment ) {
48- await extractAllPromise ;
49- }
50- callback ( null , result . code , result . map ) ;
51- } ) ;
46+ extractor
47+ . extract ( this . resourcePath , source )
48+ . then ( async ( result ) => {
49+ if ( ! isDevelopment ) {
50+ await extractAllPromise ;
51+ }
52+ callback ( null , result . code , result . map ) ;
53+ } )
54+ . catch ( callback ) ;
5255}
You can’t perform that action at this time.
0 commit comments