next-yak 8.0.3 → 9.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/README.md CHANGED
@@ -23,6 +23,10 @@
23
23
 
24
24
  | next-yak | Next.js | react | swc_core |
25
25
  |------------------|-----------------|------------------|------------------|
26
+ | 9.x | >= 16.1.0 | 19.x | 50.2.3 |
27
+ | 8.x | >= 16.0.0 | 19.x | 45.0.1 |
28
+ | 7.x | >= 15.4.4 | 19.x | 38.0.1 |
29
+ | 6.x | >= 15.4.1 | 19.x | 27.0.6 |
26
30
  | 5.x | >= 15.2.1 | 19.x | 16.0.0 |
27
31
  | 4.x | >= 15.0.4 | 19.x | 5.0.1 |
28
32
  | 3.x | 15.x | 18.x / 19.x | 3.0.2 |
@@ -0,0 +1,15 @@
1
+ import { Options } from '@swc/core';
2
+ import { Plugin } from 'vite';
3
+ import { YakConfigOptions } from '../withYak/index.ts';
4
+
5
+ type ViteYakPluginOptions = YakConfigOptions & {
6
+ swcOptions?: Omit<Options, "filename" | "sourceFileName" | "inputSourceMap" | "sourceMaps" | "sourceRoot">;
7
+ };
8
+ declare function viteYak(userOptions?: ViteYakPluginOptions): Promise<Plugin>;
9
+ /**
10
+ * Creates a debug logger function that conditionally logs messages
11
+ * based on debug options and file paths.
12
+ */
13
+ declare function createDebugLogger(debugOptions: Required<YakConfigOptions>["experiments"]["debug"], root: string): (messageType: "ts" | "css" | "css-resolved", message: string | Buffer<ArrayBufferLike> | undefined, filePath: string) => void;
14
+
15
+ export { createDebugLogger, viteYak };