Babylon.js
Babylon.js copied to clipboard
An error occurs when 'const' is added to the enum export and the tsconfig.json setting is 'isolatedModules': true'.
Commit that caused the problem
https://github.com/BabylonJS/Babylon.js/commit/a6dc77a5c1cbab71b4ba8559bb5d8269a0bda811
Description
- Suppose that the options for tsconfig.json are.
- The typecript displays an error when using the
PhysicsMotionType
enum as follows.
I don't think it's a good idea to simply modify the option "isolatedModules" to false, for example, because Next.js, a much-used framework, recommends using the option "isolatedModules" as true.
This is my personal opinion and I would like to hear from the contributors.