Typescript 3.4 as const
not working for arrays
#9910
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
Babel's typescript transform plugin doesn't support
as const
with arrays if those have variables or objects into them. The main Typescript implementation does support it.Input Code
Here's a quick repo reproducing it: https://github.com/gcangussu/babel-typescript-const-error
But basically this is the problem:
Expected behavior/code
Babel Configuration (.babelrc, package.json, cli command)
Environment
yarn babel index.ts
The text was updated successfully, but these errors were encountered: