-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Bug]: TypeScript enum issue #13863
Copy link
Copy link
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
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
💻
How are you using Babel?
Programmatic API (
babel.transform,babel.parse)Input code
Configuration file name
No response
Configuration
{ "presets": ["@babel/preset-typescript"] }Current and expected behavior
Should transform correctly, instead reports:
See https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=KYDwDg9gTgLgBMAdgVwLZwM4QMYGtgwAqAnmMHAN4BQccAygPIDCA0gKKEA0N9bASgDV-3WgEkACk24BfKlVCRYCFOmwREGGAENEMDJR6NWHOAF5MOfEVLAAdEfZdD_IXzMW8BEmXsvhPCSZ3LE9rH0CROABVAQB9PjYAQQARRIAhABk2SJjYgHU-UUJ0rJkqIA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Cstage-2%2Ctypescript&prettier=false&targets=&version=7.15.8&externalPlugins=&assumptions=%7B%7D
Environment
Latest
Possible solution
No response
Additional context
No response