You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My crystal ball tells me you have recently upgraded plugin-typescript...
Unfortunately const enums are not supported by typescript when performing single-file compilation with isolatedModules and that is what the plugin is using to transpile the files. Essentially it is because the value of the enum is not available to the transpiler, see here.
You will have to convert them into real enums and export them from your packages, rather than just defining them in the declaration files I'm afraid.
Hi Frank,
Const enums aren't being inlined when bundling. I expect:
to be converted to:
but instead it isn't converted at all.
The text was updated successfully, but these errors were encountered: