@voidzero-dev/vite-plus-core 0.1.16-alpha.2 → 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.
@@ -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, we can just confirm
12
- * it wasn't invalidated on the server side.
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
- * by default this will be imported via a dynamic "import"
20
- * instead of being transformed by vite and loaded with vite runner
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. Will be used to determine if import statement is correct.
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 vite runner
32
- * by default this will be wrapped in an async function
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 equal to `null` for virtual modules
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
  /**