@voidzero-dev/vite-plus-core 0.1.16-alpha.3 → 0.1.16-alpha.4
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/tsdown/{build-DU-BFLB1-B3WPwpFM.js → build-DU-BFLB1-Bi4na2OW.js} +9 -9
- package/dist/tsdown/build-DU-BFLB1-DJDsfG2I.js +2 -0
- package/dist/tsdown/{debug-BmAPbhgA-ClibQzj1.js → debug-BmAPbhgA-CHpocWMm.js} +2 -2
- package/dist/tsdown/{detect-h8ZFBH96-CQBPtOHi.js → detect-h8ZFBH96-DbLjA61J.js} +1 -1
- package/dist/tsdown/{dist-SqMQ6Q2q.js → dist-DpEByBn7.js} +3 -3
- package/dist/tsdown/{filename-DQnUJlio-smVMy5Ot.js → filename-DQnUJlio-D58wGDtS.js} +1 -1
- package/dist/tsdown/index-types.d.ts +190 -190
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CC95VQtR.js → main-wrcIC7dd.js} +3 -3
- package/dist/tsdown/run.js +3 -3
- package/dist/tsdown/{tsc-Bq9H2v3f.js → tsc-DzHkiQui.js} +2 -2
- package/dist/tsdown/{tsc-context-BEcA6aUv.js → tsc-context-Dban9z4Z.js} +1 -1
- package/dist/vite/client.d.ts +3 -0
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +11 -11
- package/dist/vite/node/chunks/node.js +370 -279
- package/dist/vite/node/index.d.ts +13 -3
- package/dist/vite/node/index.js +1 -1
- package/package.json +4 -4
- package/dist/tsdown/build-DU-BFLB1-DhRv5Umu.js +0 -2
|
@@ -8,34 +8,34 @@ interface FetchFunctionOptions {
|
|
|
8
8
|
type FetchResult = CachedFetchResult | ExternalFetchResult | ViteFetchResult;
|
|
9
9
|
interface CachedFetchResult {
|
|
10
10
|
/**
|
|
11
|
-
* If module cached in the runner,
|
|
12
|
-
* it
|
|
11
|
+
* If the module is cached in the runner, this confirms
|
|
12
|
+
* it was not invalidated on the server side.
|
|
13
13
|
*/
|
|
14
14
|
cache: true;
|
|
15
15
|
}
|
|
16
16
|
interface ExternalFetchResult {
|
|
17
17
|
/**
|
|
18
|
-
* The path to the externalized module starting with file
|
|
19
|
-
*
|
|
20
|
-
* instead of being transformed by
|
|
18
|
+
* The path to the externalized module starting with file://.
|
|
19
|
+
* By default this will be imported via a dynamic "import"
|
|
20
|
+
* instead of being transformed by Vite and loaded with the Vite runner.
|
|
21
21
|
*/
|
|
22
22
|
externalize: string;
|
|
23
23
|
/**
|
|
24
|
-
* Type of the module.
|
|
25
|
-
* For example, if Vite needs to throw an error if variable is not actually exported
|
|
24
|
+
* Type of the module. Used to determine if the import statement is correct.
|
|
25
|
+
* For example, if Vite needs to throw an error if a variable is not actually exported.
|
|
26
26
|
*/
|
|
27
27
|
type: "module" | "commonjs" | "builtin" | "network";
|
|
28
28
|
}
|
|
29
29
|
interface ViteFetchResult {
|
|
30
30
|
/**
|
|
31
|
-
* Code that will be evaluated by
|
|
32
|
-
*
|
|
31
|
+
* Code that will be evaluated by the Vite runner.
|
|
32
|
+
* By default this will be wrapped in an async function.
|
|
33
33
|
*/
|
|
34
34
|
code: string;
|
|
35
35
|
/**
|
|
36
36
|
* File path of the module on disk.
|
|
37
|
-
* This will be resolved as import.meta.url/filename
|
|
38
|
-
* Will be
|
|
37
|
+
* This will be resolved as import.meta.url/filename.
|
|
38
|
+
* Will be `null` for virtual modules.
|
|
39
39
|
*/
|
|
40
40
|
file: string | null;
|
|
41
41
|
/**
|