diff --git a/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts b/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts index d99143bd056c..02c456450f26 100644 --- a/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts +++ b/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts @@ -63,6 +63,8 @@ export default class TaroNormalModulesPlugin { .filter(p => p.type === 'Property' && p.key.type === 'Identifier' && p.key.name !== 'children') .forEach(p => attrs.add(p.key.name)) } + }, { + ...walk.base, Import: walk.base.Import || (() => {}) }) }) })