-
-
Notifications
You must be signed in to change notification settings - Fork 3
Scanner #3
base: latest
Are you sure you want to change the base?
Scanner #3
Conversation
This parses some various imports including dynamic imports. There is probably some broken stuff, but I think it works overall.
`import` matching
This pull request has been mentioned on Entropic. There might be relevant details there: https://discourse.entropic.dev/t/looking-for-help-rust-based-js-import-scanner/218/47 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it turns out, I don't know how to use github's review feature 😅
use ressa::Parser; | ||
use std::vec::Vec; | ||
|
||
pub fn parse_js<'a>(js: &'a str) -> Result<Vec<&'a str>, ressa::Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we return ressa::Error here or make our own error type/enum?
Hey @MilanLoveless! I know things have been quiet for a while, but it looks like we're ramping up again. As part of that, I'm organizing our repo stuff a bit, and one of those changes is I'm going to merge the |
Here is our first pass at the require/import scanner for this issue: https://discourse.entropic.dev/t/looking-for-help-rust-based-js-import-scanner/218
TODO: