-
Notifications
You must be signed in to change notification settings - Fork 11
Enhance package configuration with module exports and TypeScript settings #81
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tsconfig.json (1)
10-14
:isolatedModules: false
is redundant & may hinder some build-time tooling
isolatedModules
defaults tofalse
; persisting it explicitly adds no value and can trip tools such as Vite/ESBuild that expect it to betrue
(or absent) when performing per-file transpilation. Unless you have a concrete reason to disable isolated compilation, drop the flag to keep the config minimal and interoperable.- "isolatedModules": false
tsconfig.json
Outdated
"allowSyntheticDefaultImports": true, | ||
"declarationMap": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"isolatedModules": false |
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.
…TypeScript configuration
Even after doing this I get this errors: node_modules/mailtrap/dist/lib/transport.d.ts:2:8 - error TS1259: Module '"/Users/inhohwang/Desktop/Backend/Truth/functions/node_modules/@types/nodemailer/lib/mailer/mail-message"' can only be default-imported using the 'esModuleInterop' flag 2 import MailMessage from "nodemailer/lib/mailer/mail-message"; node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts:32:1 Found 1 error in node_modules/mailtrap/dist/lib/transport.d.ts:2 |
Hey @truthhonestmessaging. Maybe you could provide us with a repo with a sample project (e.g. derived from your current one but with any sensitive details stripped away)? Because we've tried using this version of |
No, because what you are asking is too much for me to do the answer is no. I want to help though. Because of this bug, I ended up forced having to be use esModuleInterop. There is no other way. This is at the very least code smell, and I am afraid it messed up my other imports in my entire project. Doing things like this "adding esModuleInterop" is risky for projects like mine, I think you guys should fix it so that this library compiles without esModuleInterop on, but I am using this flag, and things seem fine so far, but ideally this flag should be removed. |
Hi @truthhonestmessaging, can you please double-check if the last commits fix the problem on your side? |
Motivation
fixes #78
Summary by CodeRabbit