Skip to content

Commit

Permalink
fix(prebundle): 兼容 webpack v5.90+ 后新增的 EnvironmentNotSupportAsyncWarn…
Browse files Browse the repository at this point in the history
…ing 检查问题
  • Loading branch information
koppthe authored and ZakaryCode committed Apr 29, 2024
1 parent 3a4b002 commit 598c369
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/taro-webpack5-prebundle/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export class WebPrebundle extends BasePrebundle<IWebPrebundleConfig> {
chunkLoadingGlobal: mainBuildOutput.chunkLoadingGlobal,
globalObject: mainBuildOutput.globalObject,
path: this.remoteCacheDir,
environment: {
// @ts-expect-error 待 webpack 升级后移除注释
asyncFunction: true,
}
}

this.metadata.mfHash = getMfHash({
Expand Down

0 comments on commit 598c369

Please sign in to comment.