Skip to content

esbuild appears bundled in Wanix but not accessible from shell / OPFS access question #229

@MentalGear

Description

@MentalGear

In the Awesome Mozilla demo, Jeff mentioned that esbuild is built into Wanix. The Dockerfile also references esbuild, but I can’t seem to access it from the Wanix shell at runtime.

Expected behavior

  • esbuild available as a command from the Wanix shell

Actual behavior

  • esbuild does not appear to be available from the shell.

Use case
I’m trying to use esbuild together with a Rollup plugin to compile Svelte code inside Wanix.

Additional / alternative question: OPFS access

Is it possible to access the OPFS volume used by Wanix from outside of Wanix, for example, from a Web Worker running on the same page?

The goal would be:

  • Run esbuild externally (e.g. in a worker),
  • Write build outputs into the OPFS volume,
  • Have those files appear in Wanix’s VFS.

If this is supported, are there any examples or recommended patterns for doing this?

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