Skip to content

[Feature]: Decorators version 2023-11 #10433

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

Open
morganney opened this issue May 21, 2025 · 0 comments
Open

[Feature]: Decorators version 2023-11 #10433

morganney opened this issue May 21, 2025 · 0 comments
Assignees

Comments

@morganney
Copy link

morganney commented May 21, 2025

What problem does this feature solve?

Setting jsc.transform.decoratorVersion to an unsupported one results in:

unknown variant `2023-05`, expected one of `2021-12`, `2022-03`, `2023-11` at line 14 column 35

Then attempting to set it to 2023-11 you get the compiler error:

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  not yet implemented: 2023-11 decorator
Location: index.crates.io-1949cf8c6b5b557f/swc-22.0.0/src/config/mod.rs:663

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 1: _blake3_compress_in_place_portable
    at <unknown source file>
 2: _napi_register_module_v1
    at <unknown source file>
 3: _napi_register_module_v1
    at <unknown source file>
 4: _napi_register_module_v1
    at <unknown source file>
 5: _napi_register_module_v1
    at <unknown source file>
 6: _wasmer_eh_personality
    at <unknown source file>
 7: _napi_register_module_v1
    at <unknown source file>
 8: _napi_register_module_v1
    at <unknown source file>
 9: _napi_register_module_v1
    at <unknown source file>
10: _napi_register_module_v1
    at <unknown source file>
11: _napi_register_module_v1
    at <unknown source file>
12: _napi_register_module_v1
    at <unknown source file>
13: _napi_register_module_v1
    at <unknown source file>
14: _napi_register_module_v1
    at <unknown source file>
15: _napi_register_module_v1
    at <unknown source file>
16: _napi_register_module_v1
    at <unknown source file>
17: _napi_register_module_v1
    at <unknown source file>
18: _napi_register_module_v1
    at <unknown source file>
19: _napi_register_module_v1
    at <unknown source file>
20: _napi_register_module_v1
    at <unknown source file>
21: _napi_register_module_v1
    at <unknown source file>
22: __pthread_cond_wait
    at <unknown source file>
Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  not yet implemented: 2023-11 decorator
Location: index.crates.io-1949cf8c6b5b557f/swc-22.0.0/src/config/mod.rs:663

What does the proposed API of configuration look like?

Allow setting jsc.transform.decoratorVersion to 2023-11.

@morganney morganney added the pending triage The issue/PR is currently untouched. label May 21, 2025
@chenjiahan chenjiahan removed the pending triage The issue/PR is currently untouched. label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants