I would like to reuse the same logic based on @sveltejs/sv-utils both in the implementation of an addon and in factories that generate files for sandbox environments directly in the browser.
Currently, this is not possible because the Node.js version of the yaml dependency is bundled. As a result, the generated bundle contains the following import:
import { createRequire } from "node:module";
Would it be possible to use a browser-compatible version/build of yaml instead, so that @sveltejs/sv-utils can also be used in browser environments?
I would like to reuse the same logic based on
@sveltejs/sv-utilsboth in the implementation of an addon and in factories that generate files for sandbox environments directly in the browser.Currently, this is not possible because the Node.js version of the
yamldependency is bundled. As a result, the generated bundle contains the following import:Would it be possible to use a browser-compatible version/build of
yamlinstead, so that@sveltejs/sv-utilscan also be used in browser environments?