File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @rsdoctor/webpack-plugin ' : patch
3
+ ' @rsdoctor/sdk ' : patch
4
+ ---
5
+
6
+ fix(sdk): saveManifest need await when brief mode
Original file line number Diff line number Diff line change @@ -373,15 +373,15 @@ export class RsdoctorWebpackSDK<
373
373
}
374
374
}
375
375
376
- public writeStore ( options ?: SDK . WriteStoreOptionsType ) {
376
+ public async writeStore ( options ?: SDK . WriteStoreOptionsType ) {
377
377
debug ( ( ) => `sdk.writeStore has run.` , '[SDK.writeStore][end]' ) ;
378
378
if ( this . extraConfig ?. mode === SDK . IMode [ SDK . IMode . brief ] ) {
379
379
const clientHtmlPath = this . extraConfig . innerClientPath
380
380
? this . extraConfig . innerClientPath
381
381
: require . resolve ( '@rsdoctor/client' ) ;
382
382
383
383
if ( this . extraConfig . brief ?. writeDataJson ) {
384
- this . saveManifest ( this . getStoreData ( ) , options || { } ) ;
384
+ await this . saveManifest ( this . getStoreData ( ) , options || { } ) ;
385
385
}
386
386
return this . inlineScriptsAndStyles ( clientHtmlPath ) ;
387
387
}
Original file line number Diff line number Diff line change @@ -214,6 +214,8 @@ export class RsdoctorWebpackPlugin<Rules extends Linter.ExtendRuleData[]>
214
214
) ;
215
215
openBrowser ( `file:///${ outputFilePath } ` ) ;
216
216
}
217
- } catch ( e ) { }
217
+ } catch ( e ) {
218
+ console . error ( `[Rsdoctor] Webpack plugin this.done error` , e ) ;
219
+ }
218
220
} ;
219
221
}
You can’t perform that action at this time.
0 commit comments