diff --git a/packages/taro-webpack5-prebundle/src/mini.ts b/packages/taro-webpack5-prebundle/src/mini.ts index 1fe15951236a..d302c4a97a96 100644 --- a/packages/taro-webpack5-prebundle/src/mini.ts +++ b/packages/taro-webpack5-prebundle/src/mini.ts @@ -110,8 +110,8 @@ export class MiniPrebundle extends BasePrebundle { globalObject: mainBuildOutput.globalObject } const provideObject = { - window: [taroRuntimeBundlePath, 'window$1'], - document: [taroRuntimeBundlePath, 'document$1'], + window: [taroRuntimeBundlePath, 'taroWindowProvider'], + document: [taroRuntimeBundlePath, 'taroDocumentProvider'], navigator: [taroRuntimeBundlePath, 'nav'], requestAnimationFrame: [taroRuntimeBundlePath, '_raf'], cancelAnimationFrame: [taroRuntimeBundlePath, '_caf'],