-
Notifications
You must be signed in to change notification settings - Fork 377
fix(tsconfig): avatar tsx change #1535
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
Conversation
|
Tested and confirmed good. LGTM. |
|
PatternFly-React preview: https://1535-pr-patternfly-react-patternfly.surge.sh |
Codecov Report
@@ Coverage Diff @@
## master #1535 +/- ##
======================================
Coverage 83.6% 83.6%
======================================
Files 551 551
Lines 5744 5744
Branches 12 12
======================================
Hits 4802 4802
Misses 940 940
Partials 2 2
Continue to review full report at Codecov.
|
dlabaj
left a comment
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.
LGTM
redallen
left a comment
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.
Good for now
dlabaj
left a comment
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.
Should we remove the allowSyntheticDefaultImports?
dlabaj
left a comment
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.
Need to verify tree shaking and how this change effects other consumers prior to merging.
|
@dlabaj Note this will not have any effect on the treeshaking of React. React does not treeshake. All of their optimizations happens during their build process. They export a commonJS module (not ES) since they allow SSR in a node context. adding |
|
For historical purpose with this PR, the proposed downstream change reverts the original proposed downstream change which would support the current configuration here today: |
|
Happy Monday. I am waiting on a resolution to this PR in order to determine a course of action for OpenShift console. I want to make sure it doesn't get forgotten while @priley86 is out on PTO. Thank you. |
Tree shaking unchanged, default config line will be removed soon.
|
@rhamilto Fixed in @patternfly/react-core 2.4.1 |
What:
This change disables
allowSyntheticDefaultImportsandesModuleInterop. From a library perspective, I believe we will need to ensure that we can support Typescript consumers who have this option disabled OR enabled. This was discovered today while testing OpenShift tests downstream.It is generally considered good practice now to enable these flags (and from a Node JS/Common JS perspective) this is the typical path, however some consumers may not elect to enable them.
This should resolve the current issue and help us strategize for future TSX conversion.
cc: @dgutride @rhamilto @spadgett @tlabaj
For additional detail, with this flags disabled downstream, but enabled upstream, we'll run into these:
Additional issues: