@porotkin/vite-plugin-react-kotlinjs 1.0.3 → 1.0.5

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
@@ -1,16 +1,13 @@
1
1
  # Vite Plugin React KotlinJS
2
2
 
3
- A Vite plugin that enables Fast Refresh support for Kotlin/JS React applications.
4
-
5
- This plugin is inspired by the original
6
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main) and adapted to work with Kotlin/JS.
3
+ A Vite plugin that enables Fast Refresh support for Kotlin/JS React applications by post-processing generated JS files.
7
4
 
8
5
  ## Installation
9
6
 
10
7
  Add the following dependency to your `build.gradle.kts`:
11
8
  ```kotlin
12
9
  dependencies {
13
- jsMainImplementation(devNpm("@porotkin/vite-plugin-react-kotlinjs", "^1.0.3"))
10
+ jsMainImplementation(devNpm("@porotkin/vite-plugin-react-kotlinjs", "^1.0.5"))
14
11
  }
15
12
  ```
16
13
 
@@ -49,6 +46,12 @@ Custom function to check if the code is a React functional component.
49
46
 
50
47
  Custom function to extract React component names from the code. Useful if your Kotlin/JS compiler generates different patterns.
51
48
 
49
+ ### `debug`
50
+
51
+ - **Type:** `boolean`
52
+
53
+ Output debug information about the transformed files.
54
+
52
55
  ## How it works
53
56
 
54
57
  Plugin post-processes generated Kotlin/JS files, so the official Vite React plugin can handle them.