You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bumped version - my scenarios still work. Feel free to evaluate it as replacement)
Here is the patch I use
diff --git a/node_modules/ink/build/dom.d.ts b/node_modules/ink/build/dom.d.ts
index c28c381..3e0ce25 100644
--- a/node_modules/ink/build/dom.d.ts+++ b/node_modules/ink/build/dom.d.ts-import { type Node as YogaNode } from 'yoga-wasm-web/auto';+import { type Node as YogaNode } from 'yoga-layout';
import { type Styles } from './styles.js';
import { type OutputTransformer } from './render-node-to-output.js';
type InkNode = {
diff --git a/node_modules/ink/build/dom.js b/node_modules/ink/build/dom.js
index c64a031..894b1c6 100644
--- a/node_modules/ink/build/dom.js+++ b/node_modules/ink/build/dom.js-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';
import measureText from './measure-text.js';
import wrapText from './wrap-text.js';
import squashTextNodes from './squash-text-nodes.js';
diff --git a/node_modules/ink/build/get-max-width.d.ts b/node_modules/ink/build/get-max-width.d.ts
index 373b6f8..caf50c1 100644
--- a/node_modules/ink/build/get-max-width.d.ts+++ b/node_modules/ink/build/get-max-width.d.ts-import { type Node as YogaNode } from 'yoga-wasm-web/auto';+import { type Node as YogaNode } from 'yoga-layout';
declare const getMaxWidth: (yogaNode: YogaNode) => number;
export default getMaxWidth;
diff --git a/node_modules/ink/build/get-max-width.js b/node_modules/ink/build/get-max-width.js
index dc6a504..8a350d8 100644
--- a/node_modules/ink/build/get-max-width.js+++ b/node_modules/ink/build/get-max-width.js-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';diff --git a/node_modules/ink/build/ink.js b/node_modules/ink/build/ink.js
index ec11d33..1d0e8da 100644
--- a/node_modules/ink/build/ink.js+++ b/node_modules/ink/build/ink.js
import autoBind from 'auto-bind';
import signalExit from 'signal-exit';
import patchConsole from 'patch-console';
-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';
import reconciler from './reconciler.js';
diff --git a/node_modules/ink/build/reconciler.js b/node_modules/ink/build/reconciler.js
index a43c21d..cda8691 100644
--- a/node_modules/ink/build/reconciler.js+++ b/node_modules/ink/build/reconciler.js
import process from 'node:process';
import createReconciler from 'react-reconciler';
import { DefaultEventPriority } from 'react-reconciler/constants.js';
-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';diff --git a/node_modules/ink/build/render-node-to-output.js b/node_modules/ink/build/render-node-to-output.js
index 5c0fcf6..1035b5a 100644
--- a/node_modules/ink/build/render-node-to-output.js+++ b/node_modules/ink/build/render-node-to-output.js
import widestLine from 'widest-line';
import indentString from 'indent-string';
-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';
import wrapText from './wrap-text.js';
import getMaxWidth from './get-max-width.js';
import squashTextNodes from './squash-text-nodes.js';
diff --git a/node_modules/ink/build/styles.d.ts b/node_modules/ink/build/styles.d.ts
index 28de00b..7fdbed1 100644
--- a/node_modules/ink/build/styles.d.ts+++ b/node_modules/ink/build/styles.d.ts
import { type Boxes, type BoxStyle } from 'cli-boxes';
import { type LiteralUnion } from 'type-fest';
import { type ForegroundColorName } from 'chalk';
-import { type Node as YogaNode } from 'yoga-wasm-web/auto';+import { type Node as YogaNode } from 'yoga-layout';diff --git a/node_modules/ink/build/styles.js b/node_modules/ink/build/styles.js
index 186db31..44ee12c 100644
--- a/node_modules/ink/build/styles.js+++ b/node_modules/ink/build/styles.js-// eslint-disable-next-line n/file-extension-in-import-import Yoga from 'yoga-wasm-web/auto';+import Yoga from 'yoga-layout';
The text was updated successfully, but these errors were encountered:
Hey!
Been using a patch that replaced
yoga-wasm-web@~0.3.3
with officialyoga-layout@2
package for a while.Seems fb released v3 today that is essentially esm/wasm facebook/yoga#1559 (comment)
Bumped version - my scenarios still work. Feel free to evaluate it as replacement)
Here is the patch I use
The text was updated successfully, but these errors were encountered: