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
This package uses acorn to parse JS code which is a bit large for the use case.
Suggested solution
I propose using js-tokens instead of acorn to reduce the size of this package. This package is used in Vite and Vitest that both had acorn in dependencies through rollup, but rollup stopped using acorn in the latest major version.
The package itself is much more lightweight, but it relies on a series of regexp manipulations. Still, as far as I understand, it correctly finds commends and multicomments.
Clear and concise description of the problem
This package uses
acorn
to parse JS code which is a bit large for the use case.Suggested solution
I propose using
js-tokens
instead of acorn to reduce the size of this package. This package is used in Vite and Vitest that both hadacorn
in dependencies throughrollup
, butrollup
stopped usingacorn
in the latest major version.The package itself is much more lightweight, but it relies on a series of regexp manipulations. Still, as far as I understand, it correctly finds commends and multicomments.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: