-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
i: needs triageoutdatedA 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
repo to reproduce.
https://github.com/dog-s-life/babel-test
Configuration file name
babel.config.cjs
Configuration
module.exports = {
presets: [
'@babel/preset-typescript',
[
'@babel/env',
{
modules: false,
useBuiltIns: false
}
]
],
plugins: [
[
'@babel/transform-runtime',
{
corejs: false,
regenerator: false
}
],
[
'@babel/plugin-proposal-decorators',
{
version: '2023-11'
}
],
]
};
Current and expected behavior
If a function with a class instance as its type is specified as an argument for the property decorator, an error occurs when bundling the inherited class.
typescript eslint seems to handle properly. (no red line)
Environment
System:
OS: Linux 5.19 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
Binaries:
Node: 20.15.1 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 10.7.0 - /usr/bin/npm
pnpm: 9.5.0 - /usr/bin/pnpm
npmPackages:
@babel/cli: ^7.24.8 => 7.24.8
@babel/core: ^7.24.9 => 7.24.9
@babel/plugin-proposal-decorators: ^7.24.7 => 7.24.7
@babel/plugin-transform-runtime: ^7.24.7 => 7.24.7
@babel/preset-typescript: ^7.24.7 => 7.24.7
Possible solution
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
i: needs triageoutdatedA 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