-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
denoify creates imports from comments #89
Comments
Hi @hermann-p, I don't know, I could introduce yet another hack so that it wont happen. I ran across grubber the other day. Looks interesting. What do you thing @Gin-Quin? Could Denoify be a good usecase for grubber? |
Yep, it's exactly the kind of tasks Grubber has been designed for. Think of Grubber as something in-between a full parser and a basic search and replace system. This is especially suited for top-level static declarations, like ESM imports. You'll have 100% safety with a very simple usage. |
Ok thanks for the insight @Gin-Quin, |
Denoifying a TypeScript file with a comment containing the word "Buffer" led to an output file importing the
Buffer
package, subsequently breaking our backend build.See this commit for context.
Observed behaviour:
The word "Buffer" in a comment makes denoify create an import statement for Buffer.
Desired behaviour:
Denoify will not treat comments as code.
The text was updated successfully, but these errors were encountered: