File tree 2 files changed +3
-3
lines changed
solutions/app-tools/src/plugins/analyze
toolkit/plugin-v2/src/cli
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export default ({
203
203
204
204
builder . onDevCompileDone (
205
205
async ( { isFirstCompile, stats, environments } ) => {
206
- await hooks . onDevCompileDone . call ( {
206
+ hooks . onDevCompileDone . call ( {
207
207
isFirstCompile,
208
208
stats,
209
209
environments,
Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ export function initPluginAPI<Extends extends CLIPluginExtends>({
116
116
117
117
return new Proxy ( pluginAPI , {
118
118
get ( target : Record < string , any > , prop : string ) {
119
- // hack then function
119
+ // hack then function to fix p-defer handle error
120
120
if ( prop === 'then' ) {
121
- return undefined ; // 返回 undefined,避免被当作 Promise
121
+ return undefined ;
122
122
}
123
123
if ( prop in target ) {
124
124
return target [ prop ] ;
You can’t perform that action at this time.
0 commit comments