Skip to content

jincandev/esbuild-plugin-typescript-decorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English  |  中文


The esbuild build tool does not support typescript's [emitdecoratormetadata] (https://esbuild.github.io/content-types/#no-type-system) by default.

when using decorator development, when obtaining such as Reflect.getMetadata ("design: type", target, key), it returns undefined by default. However, using this plugin, it will return the correct value by use the above method

Usage

import esbuild from 'esbuild'
import { esbuildDecorators } from 'esbuild-plugin-typescript-decorators'

esbuild.build({
    // ...config,
    plugins: [
        esbuildDecorators()
    ]
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published