diff --git a/packages/core/src/generators/builder/generator.ts b/packages/core/src/generators/builder/generator.ts index 5d4f472691..bf97c4674a 100644 --- a/packages/core/src/generators/builder/generator.ts +++ b/packages/core/src/generators/builder/generator.ts @@ -175,10 +175,8 @@ const componentMappers: { babelTraverse(programNode, { Program(path) { - if (path.scope.hasBinding(target)) { - console.log('has binding'); - return; - } + if (path.scope.hasBinding(target)) return; + const x = { id: types.identifier(target), init: types.identifier('PLACEHOLDER'),