Skip to content

Commit

Permalink
Merge pull request #53 from solidjs/fix-granular
Browse files Browse the repository at this point in the history
Fix granular mode
  • Loading branch information
lxsmnsyc authored Jan 19, 2024
2 parents 6d48742 + 290ac72 commit e1608f5
Show file tree
Hide file tree
Showing 52 changed files with 37,036 additions and 28,616 deletions.
4 changes: 3 additions & 1 deletion src/babel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ function getBindings(path: babel.NodePath): t.Identifier[] {
ReferencedIdentifier(p) {
// Check identifiers that aren't in a TS expression
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
identifiers.add(p.node.name);
if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
identifiers.add(p.node.name);
}
}
},
});
Expand Down
3,221 changes: 0 additions & 3,221 deletions tests/__snapshots__/esm.test.ts.snap

This file was deleted.

3,221 changes: 0 additions & 3,221 deletions tests/__snapshots__/rspack-esm.test.ts.snap

This file was deleted.

3,221 changes: 0 additions & 3,221 deletions tests/__snapshots__/standard.test.ts.snap

This file was deleted.

Loading

0 comments on commit e1608f5

Please sign in to comment.