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
**Description:**
## Bugfixes
- Exported `let`/`var` declarations in TypeScript namespaces should be mutable.
- Fix missing declaration of complex exported patterns in TypeScript namespaces.
- Preserve concrete TS namespaces.
## New Features
- Introducing [Verbatim Module Syntax](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax).
- Enum value will now be inlined whenever possible within a single module, optimizing runtime performance.
- Constant enums will be automatically eliminated when feasible, This can reduce bundle size.
- Added support for cross-referencing enum values.
## Deprecated
`TsEnumConfig` is deprecated
- The `treat_const_enum_as_enum` transform option is deprecated.
- The `ts_enum_is_readonly` assumption option is deprecated.
**BREAKING CHANGE:**
TypeScript Config is changed.
**Related issue:**
- Closes#5197
- Closes#5259
- Closes#7177
- Closes#7453
- Closes#7676
- Closes#7681
- Closes#7791
- Closes#7961
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
swc
omits import aliaseswhat results in the runtime error
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.43&code=H4sIAAAAAAAAA8vMLcgvKlHQUkgsVvALVkgrys9VUNfTT1S35uXi5cqEyDrmZAKlbYEKrBFiQD5YXM8RrDS1AixcDZSoBQoAAJhh2QdYAAAA&config=H4sIAAAAAAAAA1VPSQ7DIAy88wrkcw8Vx%2F6hj0DUiYjYhB2pKMrfCymkzc2exTPehJSwkIGH3OpYl6QzYT73ilAJrN8VAS4JyWSbGG6DZWrUpB3hAe1fBljnGbm5kNRdqe4AFyPhcHTM22Cn8p9pok8Zia7CJtVhdnhNFD0VfHytB9l%2FaX1bg3rNx7AQ%2FJQj8bwOlp7DznlFsX8AqE9BlhwBAAA%3D
Expected behavior
NS
variable should be imported and declaredActual behavior
NS
is not definedVersion
1.3.42
Additional context
@kdy1 please let me know if it is clear
The text was updated successfully, but these errors were encountered: