facebook / yoga

Yoga is an embeddable layout engine targeting web standards.

Home Page:https://yogalayout.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasm-sync file index error in package.json

uinz opened this issue · comments

commented

Report

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

5310eb3#r131421132

"./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.