es6 compatable enums #1229
Reference in New Issue
Block a user
No description provided.
Delete Branch "es6-enums"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I wanna repeat the constants export in
yoga-wasm-web
, to achieveAnd I failed. it is impossible because
rollup
and other tools can't transform commonjsmodule.exports = { WHATEVER: 1 }
into ECMAScript modules. however, they can work with separate exports likeexports.WHATEVER = 1
and this PR transforms yoga constants into this convertible formatThis doesn't change anything for the yoga package, but it makes it possible to reexport constants without any modification and hacks, like this
discussion in yoga-layout-wasm
@rshest has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@rshest merged this pull request in facebook/yoga@13eacf8858.
Pull request closed