const postcss = require ( 'rollup-plugin-postcss' ) ; const autoprefixer = require ( 'autoprefixer' ) ; const cssnano = require ( 'cssnano' ) ; const nested = require ( 'postcss-nested' ) ; const path = require ( 'path' ) ; module . exports = { param { import ( 'rollup/dist/rollup' ) . InputOptions } config rollup ( config , options ) { if ( options . format === 'umd' ) { config . output . intro = 'var global = typeof self !== undefined ? self : this;' ; config . output . outro = `let GlobalVue = null
if (typeof window !== 'undefined') {
  GlobalVue = window.Vue
} else if (typeof global !== 'undefined') {
  GlobalVue = global.Vue
}
if (GlobalVue) {
  GlobalVue.component("VueUseGesture", VueUseGesture)
}` ; } config . plugins . push ( postcss ( { plugins : [ nested ( ) , autoprefixer ( ) , cssnano ( { preset : 'default' , } ) , ] . filter ( Boolean ) , inject : false , extract : path . resolve ( 'dist/vueusegesture.min.css' ) , } ) ) ; return config ; } , } ;