@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.
- package/LICENSE.md +2322 -0
- package/README.md +20 -0
- package/bin/openChrome.js +68 -0
- package/bin/vite.js +90 -0
- package/client.d.ts +285 -0
- package/dist/client/bundledDevClient.mjs +1864 -0
- package/dist/client/client.mjs +1272 -0
- package/dist/client/env.mjs +18 -0
- package/dist/node/chunks/build.js +5494 -0
- package/dist/node/chunks/dist.js +6732 -0
- package/dist/node/chunks/lib.js +371 -0
- package/dist/node/chunks/moduleRunnerTransport.d.ts +95 -0
- package/dist/node/chunks/node.js +37603 -0
- package/dist/node/chunks/postcss-import.js +465 -0
- package/dist/node/cli.js +839 -0
- package/dist/node/index.d.ts +4060 -0
- package/dist/node/index.js +2 -0
- package/dist/node/internal.d.ts +2 -0
- package/dist/node/internal.js +2 -0
- package/dist/node/module-runner.d.ts +313 -0
- package/dist/node/module-runner.js +1285 -0
- package/misc/false.js +1 -0
- package/misc/true.js +1 -0
- package/package.json +194 -0
- package/types/customEvent.d.ts +83 -0
- package/types/hmrPayload.d.ts +96 -0
- package/types/hot.d.ts +39 -0
- package/types/import-meta.d.ts +5 -0
- package/types/importGlob.d.ts +131 -0
- package/types/importMeta.d.ts +30 -0
- package/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/types/internal/devtoolsOptions.d.ts +9 -0
- package/types/internal/esbuildOptions.d.ts +28 -0
- package/types/internal/lightningcssOptions.d.ts +18 -0
- package/types/internal/rollupTypeCompat.d.ts +24 -0
- package/types/internal/terserOptions.d.ts +11 -0
- package/types/metadata.d.ts +47 -0
|
@@ -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
|
+
}
|