Why was `kotlin-redux` module removed from the wra...
# react
r
Why was
kotlin-redux
module removed from the wrappers project? @turansky
Neither
redux
nor
react-redux
projects seem to be deprecated.
t
1. No users were expected 2. Major releases were missed 3. Low quality of declarations 4. For Redux users - RTK looks like preferred option 5. ... cc @Sergei Grishchenko
Do you use them directly?
r
Yes. I have a redux module in kvision.
t
Copy declarations - is it option for you?
r
I'm releasing a major release so I can drop the module. But I was curious why it was removed.
πŸ‘ 1
t
Yes, it looks like best option.
r
btw. "No users were expected" sounds funny πŸ™‚
t
No PRs, no issues
r
Because it just works πŸ™‚
t
No questions in chat
We receive questions about things, which works prerfect on 90%
Quality of Redux declarations is smaller and no questions
r
Ok, thanks for the info.
I'm also using
kotlin-react
and
kotlin-node
if you ever think about removing these two as well πŸ˜‰
t
We also use them ;)
Other legacy packages marked in README (3 subprojects)
Sorry for the inconvenience 😞
j
Removal of react-redux hit us unprepared... Just to fill in the "no-user-info"...
t
UPDATE: Subprojects removing doesn't look like big problem You can still use fixed versions:
Copy code
dependencies {
    implementation("org.jetbrains.kotlin-wrappers:kotlin-redux:4.1.2-pre.785")
    implementation("org.jetbrains.kotlin-wrappers:kotlin-react-redux:7.2.6-pre.785")
}
f
We are also using KotlinJs and Redux-Wrapper for a web-app, but we are strongly thinking about moving to Typescript+Vite because of this kind of unpredictable changes and the very slow hot-reloading.
t
We already have Vite bundler support in KFC plugins. Vite dev server support is in progress.
r
@turansky Any thoughts on supporting wasmJs with KFC plugins?
t
Do you mean Vite bundler support for wasmJs?
r
Yes
t
We need browser declarations for WasmJs for start πŸ˜‰
πŸ‘ 1
f
ViteJS in KFC Plugins πŸ’₯ That sounds great! Thx @turansky
πŸ˜€ 1
t
We already checked Vite Dev - it works fine πŸ˜‰ Single problem for now - conflict with default Kotlin/JS tasks.
Driver of Vite activity - @Michael Porotkin ;)
@Robert Jaros In latest KFC we added
KotlinViteDevTask
, which supports custom Vite config. As result - you can use it even for WASM ;)
βž• 1
In latest KFC -
jsViteTask
is available. All known problems fixed πŸ˜‰ cc @CLOVIS
c
πŸ‘€
What's your approach to make it work?
My plugin generates the
vite.config.js
file, and it works with the default KJS config. I see this one requires es15 and per-file?
t
My plugin generates the
vite.config.js
file
What if I need additional plugin?
I see this one requires es15 and per-file?
Header should be renamed - it's defaults, which plugin will set
Motivation for
es15
: 1. Less bundle 2. More readable JS code 3. It's future default
c
What if I need additional plugin?
You can declare it
The DSL is in its own artifact if you want to reuse it: https://opensavvy.gitlab.io/automation/kotlin-vite/api-docs/vite-base/index.html
t
Config copying works fine πŸ™‚
c
How do you insert the config you need into it then?
t
There is no such problem πŸ˜‰ We just provide env property with main JS file path - you can use it, if it's what you need.
In common case you can use any entry path.
@CLOVIS Update. Per-file required for faster
vite dev
work πŸ˜‰
c
Is there any docs on how to use the plugin? It's very vague to me what it can or can't do
πŸ‘ 1
f
I tried to use ViteJS with new KFC Plugins but didn’t understand how to either
c
πŸ‘ 1
f
@CLOVIS Yes it is the plan for now
c
If you have any feedback, we have our own channel: #C078Z1QRHL3