mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
36 lines
647 B
TypeScript
36 lines
647 B
TypeScript
import type { Plugin } from 'vite'
|
|
|
|
export interface Options {
|
|
/**
|
|
* default: 'defaults'
|
|
*/
|
|
targets?: string | string[] | { [key: string]: string }
|
|
/**
|
|
* default: false
|
|
*/
|
|
ignoreBrowserslistConfig?: boolean
|
|
/**
|
|
* default: true
|
|
*/
|
|
polyfills?: boolean | string[]
|
|
additionalLegacyPolyfills?: string[]
|
|
/**
|
|
* default: false
|
|
*/
|
|
modernPolyfills?: boolean | string[]
|
|
/**
|
|
* default: true
|
|
*/
|
|
renderLegacyChunks?: boolean
|
|
/**
|
|
* default: false
|
|
*/
|
|
externalSystemJS?: boolean
|
|
}
|
|
|
|
declare function createPlugin(options?: Options): Plugin
|
|
|
|
export default createPlugin
|
|
|
|
export const cspHashes: string[]
|