@vitejs/plugin-legacy 6.1.0 → 7.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +43 -41
- package/dist/index.js +587 -0
- package/package.json +11 -20
- package/dist/index.cjs +0 -864
- package/dist/index.d.cts +0 -47
- package/dist/index.d.mts +0 -46
- package/dist/index.mjs +0 -849
package/dist/index.d.cts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
|
|
3
|
-
interface Options {
|
|
4
|
-
/**
|
|
5
|
-
* default: 'defaults'
|
|
6
|
-
*/
|
|
7
|
-
targets?: string | string[] | Record<string, string>;
|
|
8
|
-
/**
|
|
9
|
-
* default: 'edge>=79, firefox>=67, chrome>=64, safari>=12, chromeAndroid>=64, iOS>=12'
|
|
10
|
-
*/
|
|
11
|
-
modernTargets?: string | string[];
|
|
12
|
-
/**
|
|
13
|
-
* default: true
|
|
14
|
-
*/
|
|
15
|
-
polyfills?: boolean | string[];
|
|
16
|
-
additionalLegacyPolyfills?: string[];
|
|
17
|
-
additionalModernPolyfills?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* default: false
|
|
20
|
-
*/
|
|
21
|
-
modernPolyfills?: boolean | string[];
|
|
22
|
-
/**
|
|
23
|
-
* default: true
|
|
24
|
-
*/
|
|
25
|
-
renderLegacyChunks?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* default: false
|
|
28
|
-
*/
|
|
29
|
-
externalSystemJS?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* default: true
|
|
32
|
-
*/
|
|
33
|
-
renderModernChunks?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @see https://babeljs.io/docs/assumptions
|
|
36
|
-
*
|
|
37
|
-
* default: {}
|
|
38
|
-
*/
|
|
39
|
-
assumptions?: Record<string, boolean>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare function viteLegacyPlugin(options?: Options): Plugin[];
|
|
43
|
-
declare function detectPolyfills(code: string, targets: any, assumptions: Record<string, boolean>, list: Set<string>): Promise<void>;
|
|
44
|
-
declare const cspHashes: string[];
|
|
45
|
-
|
|
46
|
-
export = viteLegacyPlugin;
|
|
47
|
-
export { type Options, cspHashes, detectPolyfills };
|
package/dist/index.d.mts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
|
|
3
|
-
interface Options {
|
|
4
|
-
/**
|
|
5
|
-
* default: 'defaults'
|
|
6
|
-
*/
|
|
7
|
-
targets?: string | string[] | Record<string, string>;
|
|
8
|
-
/**
|
|
9
|
-
* default: 'edge>=79, firefox>=67, chrome>=64, safari>=12, chromeAndroid>=64, iOS>=12'
|
|
10
|
-
*/
|
|
11
|
-
modernTargets?: string | string[];
|
|
12
|
-
/**
|
|
13
|
-
* default: true
|
|
14
|
-
*/
|
|
15
|
-
polyfills?: boolean | string[];
|
|
16
|
-
additionalLegacyPolyfills?: string[];
|
|
17
|
-
additionalModernPolyfills?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* default: false
|
|
20
|
-
*/
|
|
21
|
-
modernPolyfills?: boolean | string[];
|
|
22
|
-
/**
|
|
23
|
-
* default: true
|
|
24
|
-
*/
|
|
25
|
-
renderLegacyChunks?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* default: false
|
|
28
|
-
*/
|
|
29
|
-
externalSystemJS?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* default: true
|
|
32
|
-
*/
|
|
33
|
-
renderModernChunks?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @see https://babeljs.io/docs/assumptions
|
|
36
|
-
*
|
|
37
|
-
* default: {}
|
|
38
|
-
*/
|
|
39
|
-
assumptions?: Record<string, boolean>;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare function viteLegacyPlugin(options?: Options): Plugin[];
|
|
43
|
-
declare function detectPolyfills(code: string, targets: any, assumptions: Record<string, boolean>, list: Set<string>): Promise<void>;
|
|
44
|
-
declare const cspHashes: string[];
|
|
45
|
-
|
|
46
|
-
export { type Options, cspHashes, viteLegacyPlugin as default, detectPolyfills };
|