esbuild-svelte
Purpose: Compiles Svelte components for bundling with esbuild
Key Features:
- Supports Svelte component compilation as part of esbuild builds
- Handles CSS output (external files or injected JavaScript)
- Supports TypeScript and other preprocessing via
svelte-preprocess
- Includes file-level caching for incremental/watch builds
- Supports Svelte's compiler options and preprocessing API
Target Audience: Developers using esbuild to bundle Svelte applications or components
Svelte Support: Primary framework support (built specifically for Svelte compilation)
Notable Details:
- Works with both JavaScript and TypeScript projects
- Requires
"svelte"
condition in esbuild config for component libraries - Provides caching for improved performance in watch mode
- Full API documentation available here ↗
esbuildsveltepluginjavascript
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button