@ethercorps/sveltekit-og 4.0.0 → 4.1.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/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +14 -0
- package/package.json +1 -1
package/dist/plugin.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { unwasm, type UnwasmPluginOptions } from "unwasm/plugin";
|
|
2
|
+
import type { Plugin as VitePlugin } from "vite";
|
|
2
3
|
type Plugin = ReturnType<typeof unwasm>;
|
|
3
4
|
export declare function rollupWasm(options?: UnwasmPluginOptions): Plugin;
|
|
5
|
+
export declare function sveltekitOG(options?: UnwasmPluginOptions): VitePlugin;
|
|
4
6
|
export {};
|
package/dist/plugin.js
CHANGED
|
@@ -6,3 +6,17 @@ export function rollupWasm(options) {
|
|
|
6
6
|
...options
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
+
export function sveltekitOG(options) {
|
|
10
|
+
return {
|
|
11
|
+
name: 'vite-plugin-sveltekit-og',
|
|
12
|
+
config() {
|
|
13
|
+
return {
|
|
14
|
+
build: {
|
|
15
|
+
rollupOptions: {
|
|
16
|
+
plugins: [rollupWasm(options)]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|