-
-
Notifications
You must be signed in to change notification settings - Fork 968
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
fix(tsconfig): explicit module constraints #672
Conversation
These options are viral: enabling them in a package requires all downstream consumers to enable them as well. Consumers can now opt into these semantics, it also does not require them to do so. Consumers can always safely use alternative import syntaxes (including falling back to `require() `and i`mport()`), or can enable these flags and opt into this behavior themselves.
🦋 Changeset detectedLatest commit: 88658f2 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@sambacha is attempting to deploy a commit to the wagmi Team on Vercel. A member of the Team first needs to authorize it. |
This was not enabled, look at the diff. |
This was not enabled, look at the diff. @sambacha My apologies. Here is the question: What changes were made to the |
Yeah this is good. |
Tried to do that with https://github.com/wagmi-dev/viem/pull/391/files but didn't realize that it's implicitly enabled due to NodeNext. Whoops. |
does this mean this is a breaking change? 😅 |
Sam is disabling them here. Currently they are implicitly enabled. So as it stands, consumers are affected by it. Disabling it should not cause any breaking changes but simply be more lenient on consumers. But let's verify that. |
Gotcha! I’m all good with it then! |
Codecov Report
@@ Coverage Diff @@
## main #672 +/- ##
==========================================
- Coverage 99.86% 89.94% -9.92%
==========================================
Files 260 250 -10
Lines 24709 24362 -347
Branches 2052 1406 -646
==========================================
- Hits 24676 21913 -2763
- Misses 31 2410 +2379
- Partials 2 39 +37 |
These options are viral: enabling them in a package requires all downstream consumers to enable them as well.
Consumers can now opt into these semantics, it also does not require them to do so. Consumers can always safely use alternative import syntaxes (including falling back to
require()
and import()
), or can enable these flags and opt into this behavior themselves.PR-Codex overview
This PR turns off
esModuleInterop
andallowSyntheticDefaultImports
in thetsconfig
file.Detailed summary
esModuleInterop
andallowSyntheticDefaultImports
are set tofalse
intsconfig.base.json
.