@open-xchange/rolldown-plugin-es-decorators
v1.0.0
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.
Usage
Add the plugin to your configuration:
// 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.
