You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kdy1 thanks for the fix. It seems, that the swc/types package still has to be updated since that is where the types are provided for the @swc/core package. This does not seem to have been triggered automatically so this fix still has no effect.
Could you please release a new swc/types package version? :)
Describe the bug
The
@swc/types
package provides different typings for thejsc.experimental
config option.The types package provide
keepImportAttributes
(https://github.com/swc-project/swc/blob/main/packages/types/index.ts#L642) while the docs statekeepImportAssertions
(https://swc.rs/docs/configuration/compilation#jscexperimentalkeepimportassertions).Also if you search in the repo, both variants occur: https://github.com/search?q=repo%3Aswc-project%2Fswc%20keepimport&type=code
Using
keepImportAssertions
seems to work but fails the type-checking.Input code
No response
Config
No response
Playground link (or link to the minimal reproduction)
SWC Info output
No response
Expected behavior
Would be nice to have docs, code and types using the same name for this option.
Actual behavior
No response
Version
1.7.36
Additional context
No response
The text was updated successfully, but these errors were encountered: