Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

vuejs/rollup-plugin-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6587474 · Jan 18, 2022

History

95 Commits
Oct 29, 2020
Apr 3, 2020
Oct 22, 2020
Nov 25, 2020
Nov 20, 2020
May 25, 2020
Jan 27, 2020
Dec 4, 2020
Jan 27, 2020
Jan 18, 2022
May 27, 2020
Dec 4, 2020
Apr 3, 2020
Nov 20, 2020
Dec 4, 2020

Repository files navigation

Archived

This is no longer maintained. Use Vite and @vitejs/plugin-vue instead.


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
}