-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync method #10
Comments
What you observed does make sense given that the WASM apparently takes only 5ms to boot! I think a |
One thing I will mention is that jsdoc isn't valid JavaScript if you consider only the content within the comment and exclude the comment delimiters. I do wonder whether |
That's right, I'd be supplying my own well-formed import statements based on the comments content, but not including the |
Got it. Makes sense! |
LGTM, thanks! |
Published in v2.0.0! |
Awesome, appears to be working great too, thanks! |
No problem! Glad it's working 😁 |
Hi,
I'm working with
eslint-plugin-jsdoc
and we have a need for parsing import statements (for use within@import
tags). However, ESLint does not allow asynchronous rules.I know that
es-module-lexer
mentions using async to be safe, but when I tested it within eslint, it seems enough time has passed for Wasm to load such that I could successfully get results using itsparse
method synchronously.I am wondering if you could expose a sync version of
parseImports
(that presupposes it is called with enough time for Wasm to load)?The text was updated successfully, but these errors were encountered: