Skip to content

Support class @Decorators #3032

Answered by aelbore
georgekrax asked this question in Q&A
Dec 13, 2021 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

@georgekrax yes it support decorators you can try here in swc playground https://swc.rs/playground

you can try this config

{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "decorators": true,
      "dynamicImport": true
    },
    "target": "es2020"
  }
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@georgekrax
Comment options

@georgekrax
Comment options

@kdy1
Comment options

@georgekrax
Comment options

@georgekrax
Comment options

Answer selected by kwonoj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants