Socket
Socket
Sign inDemoInstall

esbuild-plugin-typescript-decorators

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    esbuild-plugin-typescript-decorators

让ESBuild支持装饰器


Version published
Weekly downloads
857
increased by21.56%
Maintainers
1
Install size
63.8 MB
Created
Weekly downloads
 

Changelog

Source

0.1.0

  • [perf] 升级typescript至4.9.5

Readme

Source

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()
    ]
})

Keywords

FAQs

Last updated on 01 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc