@md-plugins/vite-examples-plugin 0.1.0-rc.2 → 0.1.0-rc.3
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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,9 @@ import { Plugin } from 'vite';
|
|
|
20
20
|
* The `resolveId` property resolves module IDs starting with "examples:" and returns a resolved ID.
|
|
21
21
|
* The `load` property loads example code based on the production or development environment.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* Creates the md-plugins examples plugin and configures its example source path.
|
|
25
|
+
*/
|
|
23
26
|
declare function viteExamplesPlugin({ isProd, path }: {
|
|
24
27
|
isProd: boolean;
|
|
25
28
|
path: string;
|
|
@@ -31,6 +34,9 @@ declare function viteExamplesPlugin({ isProd, path }: {
|
|
|
31
34
|
* @param id - The module ID to analyze.
|
|
32
35
|
* @returns A string representing the chunk name or `undefined`.
|
|
33
36
|
*/
|
|
37
|
+
/**
|
|
38
|
+
* Places Quasar docs examples and related vendors into stable Vite manual chunks.
|
|
39
|
+
*/
|
|
34
40
|
declare function viteManualChunks(id: string): string | undefined;
|
|
35
41
|
|
|
36
42
|
export { viteExamplesPlugin, viteManualChunks };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ import { Plugin } from 'vite';
|
|
|
20
20
|
* The `resolveId` property resolves module IDs starting with "examples:" and returns a resolved ID.
|
|
21
21
|
* The `load` property loads example code based on the production or development environment.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* Creates the md-plugins examples plugin and configures its example source path.
|
|
25
|
+
*/
|
|
23
26
|
declare function viteExamplesPlugin({ isProd, path }: {
|
|
24
27
|
isProd: boolean;
|
|
25
28
|
path: string;
|
|
@@ -31,6 +34,9 @@ declare function viteExamplesPlugin({ isProd, path }: {
|
|
|
31
34
|
* @param id - The module ID to analyze.
|
|
32
35
|
* @returns A string representing the chunk name or `undefined`.
|
|
33
36
|
*/
|
|
37
|
+
/**
|
|
38
|
+
* Places Quasar docs examples and related vendors into stable Vite manual chunks.
|
|
39
|
+
*/
|
|
34
40
|
declare function viteManualChunks(id: string): string | undefined;
|
|
35
41
|
|
|
36
42
|
export { viteExamplesPlugin, viteManualChunks };
|