1. rollup-plugin-vue
> Roll Vue 3 SFCs with Rollup.
rollup-plugin-vue
Package: rollup-plugin-vue
Last modified: Sun, 26 Jun 2022 14:02:33 GMT
Version: 6.0.0
License: MIT
Downloads: 250,976

Install

npm install rollup-plugin-vue
yarn add rollup-plugin-vue

rollup-plugin-vue@next

Roll Vue 3 SFCs with Rollup.

 import vuePlugin from 'rollup-plugin-vue'

export default {
  plugins: [
    vuePlugin(/* options */)
  ]
}

Options

 export interface Options {
  include: string | RegExp | (string | RegExp)[]
  exclude: string | RegExp | (string | RegExp)[]

  // use 'node' if compiling for SSR
  target: 'node' | 'browser'

  // if true, will attach __file to component even in production.
  // defaults to false.
  exposeFilename: boolean

  // if true, handle preprocessors directly instead of delegating to other
  // rollup plugins
  // defaults to false.
  preprocessStyles?: boolean
  cssModulesOptions?: {
    // https://github.com/css-modules/postcss-modules#usage
  }

  // these are simply passed on to @vue/compiler-sfc
  compiler
  compilerOptions
  transformAssetUrls
  preprocessCustomRequire
}

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code