@open-xchange/rolldown-plugin-es-decorators
v1.2.1
Published
Rolldown plugin that adds support for native ES decorators
Maintainers
Keywords
Readme
@open-xchange/rolldown-plugin-es-decorators
A plugin for Rolldown (or compatible bundlers like Vite or tsdown) that adds support for native ES decorators.
Installation
npm install -D @open-xchange/rolldown-plugin-es-decorators
# or
pnpm add -D @open-xchange/rolldown-plugin-es-decorators
# or
yarn add -D @open-xchange/rolldown-plugin-es-decoratorsConfiguration
Add the plugin to your rolldown configuration (or compatible configurations like Vite or tsdown):
// rolldown.config.ts
import { defineConfig } from 'rolldown'
import decoratorsPlugin from '@open-xchange/rolldown-plugin-es-decorators'
export default defineConfig(() => {
plugins: [
decoratorsPlugin(),
],
})The bundler will then send all source files to the Babel parser which will transpile ES decorators using the plugin @babel/plugin-proposal-decorators.
