-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Spec: Decoratorsi: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
💻
- Would you like to work on a fix?
How are you using Babel?
@rollup/plugin-babel
Input code
@DecTest
class Test {}
function DecTest(value, ctx) {
console.log(ctx.kind, ctx, value);
}Configuration file name
No response
Configuration
import { babel } from "@rollup/plugin-babel";
export default defineConfig(() => {
const babelPlugins = [
["@babel/plugin-proposal-decorators", { version: "2023-05" }],
];
return {
build: {
target: "es6",
outDir: "./dist",
emptyOutDir: true,
},
plugins: [
babel({
extensions: [".js", ".ts"],
babelrc: false,
configFile: false,
compact: false,
babelHelpers: "bundled",
plugins: babelPlugins,
}),
],
};
});Current and expected behavior
context.kind should 'class'
Environment
macos
node 18
chrome
vite 5
Possible solution
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Spec: Decoratorsi: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue

