You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
647 B
36 lines
647 B
2 years ago
|
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[]
|