wasm-sync file index error in package.json
uinz opened this issue · comments
Report
- I have searched existing issues and this is not a duplicate
Issues and Steps to Reproduce
import "yoga-layout/wasm-sync"
jump to wrong file.
Expected Behavior
import "yoga-layout/wasm-sync"
jump to ./src/entrypoint/wasm-sync-web.js
Actual Behavior
import "yoga-layout/wasm-sync"
jump to ./src/entrypoint/wasm-async-web.js
Link to Code
"./wasm-sync": {
"browser": "./src/entrypoint/wasm-sync-web.js",
"node": "./src/entrypoint/wasm-sync-node.js",
"default": "./src/entrypoint/wasm-async-web.js"
// ^^^^^ it should be sync
}
Oof. I can publish a new version with a fix.
Next version of Yoga (planning to do a release at the same time as RN 0.74) is single flavor, but relies on ES module top-level await to do that.
Pushed a fix: https://www.npmjs.com/package/yoga-layout/v/2.0.1