From ea63f13d39f6b41c87bbc9c11e6b5ce6b73c1882 Mon Sep 17 00:00:00 2001 From: BearJ Date: Thu, 22 Sep 2022 11:46:16 +0800 Subject: [PATCH] feat: support taro^3.5 (#7) --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index d79abd2..595dba9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,6 +27,10 @@ export default (ctx: IPluginContext, options: Options) => { async fn({ config }) { config.onBuildFinish = ({ stats }) => { stats?.compilation?.entries?.forEach((entry) => { + if (entry.miniType === undefined) { + entry = entry.dependencies?.[0] || {} + } + if (entry.miniType !== "PAGE") return if (