Skip to content

feat: Make @sveltejs/sv-utils browser-friendly #1262

Description

@x0k

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions