cocos-engine
cocos-engine copied to clipboard
fix wrong node modules' conditional exports order
see the relative feedback: https://forum.cocos.org/t/topic/149932/527?u=_pp
our implementation should follow the standard nodejs consditional exports specification https://nodejs.org/api/packages.html#conditional-exports
I was going to ask for this, very nice to see this in your backlog! This would allow the use of many libs without the hassle of CJS default exports only.
This problem has not been fixed in the 3.8.2 beta version.
When the editor enters
cocos, browser
, the value with spaces is stored in project.json. I don’t know if this will cause problems.