Skip to content

TypeScript 5 Decorators + Esbuild #19066

Answered by takawitter
angelhdzdev asked this question in Q&A
Discussion options

You must be logged in to vote

Try changing esbuild.target option in vite.config.js

export default {
    esbuild: {
        target: "es2022"
    }
}

This works for me.

reference: #17308

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@angelhdzdev
Comment options

@angelhdzdev
Comment options

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