A plugin for esbuild that compiles Vue 3 Single-File Components (.vue files) including `<script setup>`. Version 0.5.0, updated irregularly. It leverages internal modules from `@vitejs/plugin-vue` with an interface adapted for esbuild. Unlike Vite's plugin, it does not require Rollup or Vite, making it suitable for projects that want a lighter build pipeline. However, it lacks support for pre-processors, CSS Modules, custom blocks, SFC src imports, and source maps. TypeScript definitions are included.
npm install esbuild-plugin-vue-iiiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal usage of esbuild with the Vue 3 SFC plugin to bundle a TypeScript entry point.
Use separate build step or inline precompiled CSS.
Use a different plugin or extract styles manually.
No workaround currently; consider using Vite for source maps.
Inline templates/scripts/styles in the .vue file.
Handle custom blocks with a separate loader.
Ensure <style> contains plain CSS or remove pre-processor usage.
Run 'npm install -D esbuild-plugin-vue-iii'
Use named import: import { vue3Plugin } from 'esbuild-plugin-vue-iii'