unplugin-bubble
v0.2.0
Published
A universal bundler plugin which converts ES2015+ code with the Bublé compiler.
Downloads
3
Maintainers
Readme
unplugin-bubble
🍣 A universal bundler plugin which converts ES2015+ code with the Bublé compiler.
Install
npm i --save-dev unplugin-bubble
// vite.config.ts
import UnpluginBubble from 'unplugin-bubble/vite'
export default defineConfig({
plugins: [
UnpluginBubble({
/* options */
}),
],
})
Example: playground/
// rollup.config.js
import UnpluginBubble from 'unplugin-bubble/rollup'
export default {
plugins: [
UnpluginBubble({
/* options */
}),
],
}
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-bubble/webpack')({
/* options */
}),
],
}
// nuxt.config.js
export default defineNuxtConfig({
modules: [
[
'unplugin-bubble/nuxt',
{
/* options */
},
],
],
})
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-bubble/webpack')({
/* options */
}),
],
},
}
// esbuild.config.js
import { build } from 'esbuild'
import UnpluginBubble from 'unplugin-bubble/esbuild'
build({
plugins: [UnpluginBubble()],
})
Usage
Options
For all options please refer to docs.
This plugin accepts all @rollup/plugin-buble options.