-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: analyze commonjs files #540
Conversation
"error": "The module's source code could not be parsed: 'import', and 'export' cannot be used outside of module code at file:///file.cjs:1:1\n\n export class Test {}\n ~~~~~~" | ||
}, |
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.
Cool 👍
{ | ||
"specifier": "node:module", | ||
"error": "Module not found \"node:module\"." | ||
} |
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.
Is this expected? Shouldn't it be marked as external or built-in?
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.
Yeah, this test isn't configured for it.
In https://github.com/denoland/deno_graph/commits/main/src/fast_check/transform_dts.rs: From denoland/deno_graph@7f38d56 to denoland/deno_graph@258186c PR list: - [x] ~denoland/deno_graph#508. I don't port this pr because swc doesn't resolve `public_ranges`. However, I refer to https://github.com/oxc-project/oxc/blob/fac5042afafc6e1acd6953150f3857d086ba945d/crates/oxc_isolated_declarations/src/lib.rs#L421C24-L421C33 to fix the bugs. - [x] denoland/deno_graph#521 - [x] denoland/deno_graph#522 - [x] denoland/deno_graph#540 I will port the tests if I have spare time.
Program
instead ofModule
more deno_ast#281