transform
- Type:
optionaltransform:TransformOptions
Defined in: options/input-options.ts:490
Configure how the code is transformed. This process happens after the transform hook.
To transpile legacy decorators, you could use
js
export default defineConfig({
transform: {
decorator: {
legacy: true,
},
},
})For latest decorators proposal, rolldown is able to bundle them but doesn't support transpiling them yet.