@wuchale/vite-plugin 0.14.0 → 0.14.1

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.ts CHANGED
@@ -26,7 +26,7 @@ declare class Plugin {
26
26
  load: (id: string) => string;
27
27
  transform: {
28
28
  order: "pre";
29
- handler: (code: string, id: string, options: {
29
+ handler: (code: string, id: string, options?: {
30
30
  ssr?: boolean;
31
31
  }) => Promise<{
32
32
  code?: string;
package/dist/index.js CHANGED
@@ -136,7 +136,7 @@ class Plugin {
136
136
  const filename = relative(this.#projectRoot, id);
137
137
  for (const adapter of Object.values(this.#adapters)) {
138
138
  if (adapter.fileMatches(filename)) {
139
- return await adapter.transform(code, filename, this.#hmrVersion, options.ssr);
139
+ return await adapter.transform(code, filename, this.#hmrVersion, options?.ssr);
140
140
  }
141
141
  }
142
142
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wuchale/vite-plugin",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Protobuf-like i18n from plain code: Vite plugin",
5
5
  "scripts": {
6
6
  "dev": "tsc --watch",