Feature Request
Description
Hey!
The latest satori version uses yoga-layout under the hood which works only in ESM mode therefore is a bit difficult to use Satori from Common.JS environment like Nest.js:
import loadYogaImpl from '../binaries/yoga-wasm-base64-esm.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
It will be nice to figure out and find any solution providing more soft satori integration via cjs.
Additional Context
As a temporary solution I recompiled satori by tsup: https://github.com/RuBAN-GT/satori-multi. May be it will be useful for everyone unless we found any other idea.
Feature Request
Description
Hey!
The latest satori version uses
yoga-layoutunder the hood which works only in ESM mode therefore is a bit difficult to use Satori from Common.JS environment like Nest.js:It will be nice to figure out and find any solution providing more soft satori integration via cjs.
Additional Context
As a temporary solution I recompiled satori by tsup: https://github.com/RuBAN-GT/satori-multi. May be it will be useful for everyone unless we found any other idea.