-
Notifications
You must be signed in to change notification settings - Fork 16
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(storybook): add useDefineForClassFields false #289
Conversation
As of TypeScript 4.3.1+, [one must specify `useDefineForClassFields: false` explicitly](evanw/esbuild#1354 (comment)) when targeting ESNext, because [TC39 now uses the same syntax](https://www.typescriptlang.org/tsconfig#useDefineForClassFields) and these would conflict otherwise. Updating this configuration allows the Storybook configuration to continue working. Pharos itself never broke because it is currently targeting `es2019`. Chromatic didn't catch this because it targets `firefox65` because Chromatic has a really crusty old Firefox. Womp.
|
size-limit report 📦
|
I wonder: Should we pre-emptively add |
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.
I am in favor of explicitly setting useDefineForClassFields
in the package's tsconfig
.
* fix(storybook): add useDefineForClassFields false As of TypeScript 4.3.1+, [one must specify `useDefineForClassFields: false` explicitly](evanw/esbuild#1354 (comment)) when targeting ESNext, because [TC39 now uses the same syntax](https://www.typescriptlang.org/tsconfig#useDefineForClassFields) and these would conflict otherwise. Updating this configuration allows the Storybook configuration to continue working. Pharos itself never broke because it is currently targeting `es2019`. Chromatic didn't catch this because it targets `firefox65` because Chromatic has a really crusty old Firefox. Womp. * fix(pharos): add useDefineForClassFields to main package
This change: (check at least one)
Is this a breaking change? (check one)
Is the: (complete all)
What does this change address?
Resolves #287
As of TypeScript 4.3.1+, one must specify
useDefineForClassFields: false
explicitly when targeting ESNext, because TC39 now uses the same syntax and these would conflict otherwise.How does this change work?
Updating this configuration allows the Storybook configuration to continue working.
Additional context
Pharos itself never broke because it is currently targeting
es2019
. Chromatic didn't catch this because it targetsfirefox65
because Chromatic has a really crusty old Firefox. Womp.