syn-bundler is an in-browser JavaScript/TypeScript bundler that operates entirely on a virtual file system, using esbuild-wasm under the hood. Version 0.0.1 is a pre-release with no established release cadence. It differentiates by running fully client-side without a server, making it suitable for browser-based IDEs, playgrounds, and code sandboxes. Includes built-in support for JSX, CSS, SVG, and PNG assets via plugins.
npm install syn-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a virtual file system with TSX, CSS, and SVG, then bundling with external React and ReactDOM via import map.
Use absolute paths starting with '/' for all files in the Map.
Provide an importMap with 'react' and 'react-dom' mapped to CDN URLs (e.g., https://esm.sh/).
The bundled output is always ESM. Use a module-capable environment (e.g., <script type="module">) to run it.
Ensure all imported file types are supported or provide a custom plugin.
Add an importMap with entries for 'react' and 'react-dom' (and any other external packages).
Ensure all keys in the files Map start with a forward slash '/'.
Add the CSS file to the files Map with the correct absolute path matching the import.