
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
esbuild-plugin-decorator
Advanced tools
ESBuild plugin to handle TypeScript decorators compilation.
typescript / @swc/core.# install peer dependencies
# install @swc/core if you want to use swc as compiler
npm i esbuild typescript @swc/core -D
npm i esbuild-plugin-decorator -D
pnpm i esbuild-plugin-decorator -D
yarn add esbuild-plugin-decorator -D
import { build } from 'esbuild';
import { esbuildPluginDecorator } from 'esbuild-plugin-decorator';
(async () => {
const res1 = await build({
entryPoints: ['./demo.ts'],
bundle: true,
outfile: './dist/main.js',
plugins: [
esbuildPluginDecorator({
tsconfigPath: 'apps/nest-app/tsconfig.app.json',
}),
],
});
})();
export interface ESBuildPluginDecoratorOptions {
// tsconfig path (tsconfig.json)
// required even you're using swc as compiler
// if not specified, will search tsconfig.json(relative to cwd option) by default
tsconfigPath?: string;
// swc config path (.swcrc)
swcrcPath?: string;
// force specified compiler for all code compilation
// (even no decorators are found)
// if set to false, plugin will be skipped when no decorators are found
force?: boolean;
// default: process.cwd()
cwd?: string;
// use typescript or @swc/core for decorator compilation
// default: tsc
compiler?: 'tsc' | 'swc';
// when innx project, will search tsconfig.base.json
// when tsconfigPath is not speficied
// there will be more customization for nx-workspace in the future
// default: false
isNxProject?: boolean;
// extra compile options
// will override config from config file
tscCompilerOptions?: TSCCompileOptions;
swcCompilerOptions?: SWCCompileOptions;
// verbose logging
// log info about plugin skipped / decorators not found / current configuration
// default: false
verbose?: boolean;
}
FAQs
ESBuild plugin for decorator compilation.
The npm package esbuild-plugin-decorator receives a total of 820 weekly downloads. As such, esbuild-plugin-decorator popularity was classified as not popular.
We found that esbuild-plugin-decorator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.