-
Notifications
You must be signed in to change notification settings - Fork 149
(feat) support preserveValueImports introduced in TS 4.5 #434
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
(feat) support preserveValueImports introduced in TS 4.5 #434
Conversation
This new flag keeps imports as is, essentially functioning the same as the import transformer.
@dummdidumm LGTM, but I'm a bit out of context and busy with moving to another country, sorry for taking some days to check this! This is possible due to TS 4.5, right? |
Correct. TS 4.5 introduced the new setting |
@@ -87,7 +87,7 @@ | |||
"sugarss": "^2.0.0", | |||
"svelte": "^3.42.0", | |||
"ts-jest": "^25.1.0", | |||
"typescript": "^4.4.2" | |||
"typescript": "^4.5.2" |
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.
Quick question: (when) have we removed the support for v3? 🤔
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.
never, these are the dev dependencies, not the peer dependencies.
* (feat) support preserveValueImports introduced in TS 4.5 This new flag keeps imports as is, essentially functioning the same as the import transformer. * Update test/transformers/typescript.test.ts Co-authored-by: Simon Holthausen <[email protected]> Co-authored-by: Christian Kaisermann <[email protected]>
This new flag keeps imports as is, essentially functioning the same as the import transformer.
Before submitting the PR, please make sure you do the following
npm run lint
!)Tests
npm test
oryarn test