0.5.0 • Published 3 years ago

esbuild-plugin-vue-iii v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

esbuild-plugin-vue-iii

This is a esbuild plugin for vue 3 SFC files (.vue).
This plugin is based on the @vitejs/plugin-vue internal modules, whose interface is tweaked to suit for esbuild.
<script setup> is supported.

Install

npm i -D esbuild esbuild-plugin-vue-iii

Usage

const build = require('esbuild').build;
const vue3Plugin = require('esbuild-plugin-vue-iii').vue3Plugin;

build({
  entryPoints: ['index.ts'],
  bundle: true,
  outdir: 'dist',
  plugins: [vue3Plugin()],
}).catch(() => process.exit(1));

Not (yet) supported

  • Pre-Processors
  • CSS Modules
  • Template Static Asset Reference -> esbuild built-in options can be used for this feature. See issue#1.
  • Custom Blocks
  • SFC Src Imports
  • Source Map

Development

  • Main project set up
npm run setup-submodule
npm i
  • Start the demo
cd demo
npm i
npm run build
npm run serve

License

MIT

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.2-0

3 years ago

0.3.1

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.0

3 years ago