You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use acorn for parsing JS into the AST, however there are faster alternatives now.
One of the fastest, @swc/core, is used by Next.js so its perhaps possible to parse once and share the AST so that nft wouldn't need to parse again. However, this could lead to a major rewrite since the AST is not compatible.
Another alternative, hermes-parser, is used by React Native and should have the same AST format (ESTree) which might mean its a drop-in replacement for acorn.
We currently use
acorn
for parsing JS into the AST, however there are faster alternatives now.One of the fastest,
@swc/core
, is used by Next.js so its perhaps possible to parse once and share the AST so that nft wouldn't need to parse again. However, this could lead to a major rewrite since the AST is not compatible.Another alternative,
hermes-parser
, is used by React Native and should have the same AST format (ESTree) which might mean its a drop-in replacement foracorn
.The text was updated successfully, but these errors were encountered: