Skip to content

Commit e1608f5

Browse files
authored
Merge pull request #53 from solidjs/fix-granular
Fix granular mode
2 parents 6d48742 + 290ac72 commit e1608f5

52 files changed

Lines changed: 37036 additions & 28616 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/babel/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ function getBindings(path: babel.NodePath): t.Identifier[] {
229229
ReferencedIdentifier(p) {
230230
// Check identifiers that aren't in a TS expression
231231
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
232-
identifiers.add(p.node.name);
232+
if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
233+
identifiers.add(p.node.name);
234+
}
233235
}
234236
},
235237
});

tests/__snapshots__/esm.test.ts.snap

Lines changed: 0 additions & 3221 deletions
This file was deleted.

tests/__snapshots__/rspack-esm.test.ts.snap

Lines changed: 0 additions & 3221 deletions
This file was deleted.

tests/__snapshots__/standard.test.ts.snap

Lines changed: 0 additions & 3221 deletions
This file was deleted.

0 commit comments

Comments
 (0)