@squoosh-kit/vite-plugin 0.0.33 → 0.0.34

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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @squoosh-kit/vite-plugin
3
+ *
4
+ * Vite plugin that automatically configures squoosh-kit worker URLs.
5
+ * This plugin resolves worker paths using Vite's module resolution,
6
+ * ensuring workers load correctly in both development and production builds.
7
+ */
8
+ import type { Plugin } from 'vite';
9
+ export interface SquooshKitPluginOptions {
10
+ /**
11
+ * Whether to auto-configure workers automatically.
12
+ * If true, configuration code is injected into entry points.
13
+ * If false, you must manually import '@squoosh-kit/vite-plugin/auto-config' in your app.
14
+ * @default true
15
+ */
16
+ autoConfigure?: boolean;
17
+ }
18
+ /**
19
+ * Vite plugin for automatic squoosh-kit worker configuration.
20
+ *
21
+ * This plugin automatically resolves and configures worker URLs for
22
+ * @squoosh-kit/resize and @squoosh-kit/webp packages, ensuring they
23
+ * work correctly in both development and production builds.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * // vite.config.ts
28
+ * import { defineConfig } from 'vite';
29
+ * import squooshKit from '@squoosh-kit/vite-plugin';
30
+ *
31
+ * export default defineConfig({
32
+ * plugins: [squooshKit()],
33
+ * });
34
+ * ```
35
+ */
36
+ export default function squooshKit(options?: SquooshKitPluginOptions): Plugin;
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAkB,MAAM,MAAM,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAKD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,OAAO,GAAE,uBAA4B,GACpC,MAAM,CAmGR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squoosh-kit/vite-plugin",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "description": "Vite plugin for automatic squoosh-kit worker configuration",
6
6
  "author": "Bartosz Nowak <bnowak008@gmail.com>",