An esbuild plugin for Scala.js that integrates the Scala.js build output (JavaScript files) into esbuild bundling. This plugin allows using esbuild to bundle Scala.js projects, replacing or supplementing the default Scala.js linker. Version 0.0.5 is experimental and pre-1.0; releases are sparse. It currently requires an existing Scala.js build (sbt fastOptJS/fullOptJS) and only bundles the resulting JavaScript. Unlike full build tools, it does not compile Scala code directly. The plugin is designed for developers already using Scala.js who want to leverage esbuild's fast bundling, code splitting, and plugin ecosystem. It is not actively maintained.
npm install esbuild-scalajsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: bundling a Scala.js output file with esbuild using the plugin. Assumes Scala.js has already been compiled.
Use a single entry point or manually concatenate multiple Scala.js outputs before bundling.
Ensure Scala.js artifacts exist before running esbuild. Use sbt to compile first.
Pin to exact version and monitor repository for updates.
Use scalaJsPlugin() with empty parentheses to invoke and return the plugin object.
Run sbt fastOptJS or fullOptJS before esbuild to generate the Scala.js output.