@ogygia/core 0.12.1 → 0.12.2
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/vite/index.d.ts +13 -0
- package/dist/vite/index.js +4 -0
- package/package.json +1 -1
package/dist/vite/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { debarrel } from "../compiler/debarrel/plugin.js";
|
|
|
5
5
|
import { BuildContext, MacroContext, MacroHandler, MarkupRegions, MarkupSource, OgygiaPlugin, PluginDefinition, definePlugin } from "./plugin-api.js";
|
|
6
6
|
import { DebarrelOptions, Matcher } from "../compiler/debarrel/options.js";
|
|
7
7
|
import { OgygiaOptions, OgygiaPreset, OgygiaRateLimit } from "./options.js";
|
|
8
|
+
import { PreprocessorGroup } from "svelte/compiler";
|
|
8
9
|
import { Plugin } from "vite";
|
|
9
10
|
/**
|
|
10
11
|
* Vite plugin: transforms `with { hydrate | defer | preset }` imports into islands,
|
|
@@ -16,4 +17,16 @@ import { Plugin } from "vite";
|
|
|
16
17
|
* @returns Vite plugins (`ogygia` pre + island sourcemap fix post). Vite flattens the array.
|
|
17
18
|
*/
|
|
18
19
|
export declare function ogygia(options?: OgygiaOptions): Plugin[];
|
|
20
|
+
export declare namespace ogygia {
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Does nothing: returns `['.svelte']`. Markdown extensions come from
|
|
23
|
+
* `extensions()` in `@ogygia/content/vite`.
|
|
24
|
+
*/
|
|
25
|
+
export const extensions: () => string[];
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Does nothing: returns `[]`. The markdown preprocessor comes from `preprocess()` in
|
|
28
|
+
* `@ogygia/content/vite`.
|
|
29
|
+
*/
|
|
30
|
+
export const preprocess: () => PreprocessorGroup[];
|
|
31
|
+
}
|
|
19
32
|
export { type BuildContext, CLIENT_BINDING_STUB, DEFAULT_IMPORT_KEYS, type Matcher as DebarrelMatcher, type DebarrelOptions, type ImportKeys, type MacroContext, type MacroHandler, type MarkupRegions, type MarkupSource, type OgygiaOptions, type OgygiaPlugin, type OgygiaPreset, type OgygiaRateLimit, type PluginDefinition, debarrel, definePlugin, import_keys_hint, islandChunkFileName, islandId, islandPublicUrl, normalize_import_keys, regionId, regionIdentity, rewrite_lake_import_to_placeholder, strategyKey, wrapperVirtualId };
|
package/dist/vite/index.js
CHANGED
|
@@ -818,4 +818,8 @@ function ogygia(options = {}) {
|
|
|
818
818
|
server_sourcemaps_plugin(() => measure)
|
|
819
819
|
];
|
|
820
820
|
}
|
|
821
|
+
Object.assign(ogygia, {
|
|
822
|
+
extensions: () => [".svelte"],
|
|
823
|
+
preprocess: () => []
|
|
824
|
+
});
|
|
821
825
|
export { CLIENT_BINDING_STUB, DEFAULT_IMPORT_KEYS, debarrel, definePlugin, import_keys_hint, islandChunkFileName, islandId, islandPublicUrl, normalize_import_keys, ogygia, regionId, regionIdentity, rewrite_lake_import_to_placeholder, strategyKey, wrapperVirtualId };
|