diff --git a/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts b/packages/taro-mini-runner/src/plugins/TaroNormalModulesPlugin.ts index d99143bd056c..ffe7066caeea 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: () => {} }) }) })