@ohos-ports/vite 8.3.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.
@@ -0,0 +1,24 @@
1
+ import type * as Rolldown from 'rolldown'
2
+
3
+ export * from 'rolldown'
4
+
5
+ /** @deprecated use RolldownBuild instead */
6
+ export type RollupBuild = Rolldown.RolldownBuild
7
+
8
+ /** @deprecated use RolldownOptions instead */
9
+ export type RollupOptions = Rolldown.RolldownOptions
10
+
11
+ /** @deprecated use RolldownOutput instead */
12
+ export type RollupOutput = Rolldown.RolldownOutput
13
+
14
+ /** @deprecated use RolldownPlugin instead */
15
+ export type RollupPlugin = Rolldown.RolldownPlugin
16
+
17
+ /** @deprecated use RolldownPluginOption instead */
18
+ export type RollupPluginOption = Rolldown.RolldownPluginOption
19
+
20
+ /** @deprecated use RolldownWatcher instead */
21
+ export type RollupWatcher = Rolldown.RolldownWatcher
22
+
23
+ /** @deprecated use RollupWatcherEvent instead */
24
+ export type RollupWatcherEvent = Rolldown.RolldownWatcherEvent
@@ -0,0 +1,11 @@
1
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
2
+
3
+ // @ts-ignore `terser` may not be installed
4
+ export type * as Terser from 'terser'
5
+ // @ts-ignore `terser` may not be installed
6
+ import type * as Terser from 'terser'
7
+
8
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
9
+
10
+ export type TerserMinifyOptions = Terser.MinifyOptions
11
+ export type TerserMinifyOutput = Terser.MinifyOutput
@@ -0,0 +1,47 @@
1
+ export interface AssetMetadata {
2
+ importedAssets: Set<string>
3
+ importedCss: Set<string>
4
+ }
5
+
6
+ export interface ChunkMetadata {
7
+ importedAssets: Set<string>
8
+ importedCss: Set<string>
9
+ /** @internal */
10
+ __modules: any
11
+ }
12
+
13
+ export interface CustomPluginOptionsVite {
14
+ /**
15
+ * If this is a CSS Rollup module, you can scope to its importer's exports
16
+ * so that if those exports are treeshaken away, the CSS module will also
17
+ * be treeshaken.
18
+ *
19
+ * The "importerId" must import the CSS Rollup module statically.
20
+ *
21
+ * Example config if the CSS id is `/src/App.vue?vue&type=style&lang.css`:
22
+ * ```js
23
+ * cssScopeTo: ['/src/App.vue', 'default']
24
+ * ```
25
+ */
26
+ cssScopeTo?: readonly [importerId: string, exportName: string | undefined]
27
+
28
+ /** @deprecated no-op since Vite 6.1 */
29
+ lang?: string
30
+ }
31
+
32
+ declare module 'rolldown' {
33
+ export interface OutputAsset {
34
+ viteMetadata?: AssetMetadata
35
+ }
36
+
37
+ export interface RenderedChunk {
38
+ viteMetadata?: ChunkMetadata
39
+ }
40
+ export interface OutputChunk {
41
+ viteMetadata?: ChunkMetadata
42
+ }
43
+
44
+ export interface CustomPluginOptions {
45
+ vite?: CustomPluginOptionsVite
46
+ }
47
+ }