Robert Jaros
07/25/2020, 10:52 AM1.0.0
and 1.0.0-IR
) and just let users choose the one they want to use? In my opinion "both-mode" makes a lot of mess for a Kotlin/JS project (e.g. strange module names).Hanno
07/25/2020, 12:47 PMBig Chungus
07/25/2020, 12:50 PMRobert Jaros
07/25/2020, 12:51 PMRobert Jaros
07/25/2020, 12:54 PM-IR
in version number, at least it would be clear if a given library supports IR backend at all.Robert Jaros
07/25/2020, 12:59 PMlegacy
or ir
the generated package.json
have just "name": "kvision"
. If I build with both
I get two different modules: one is kvision-jsLegacy
and the other kvision-jsIr
. It's a problem when I need to use this module name in code.Robert Jaros
07/25/2020, 1:09 PMboth
option. I currently have dependsOn("testClasses")
and it works fine with legacy
or ir
. But with both
the task is not there:
FAILURE: Build failed with an exception.
Task with path 'testClasses' not found in project
Robert Jaros
07/25/2020, 1:13 PMBig Chungus
07/25/2020, 1:18 PMBig Chungus
07/25/2020, 1:18 PMRobert Jaros
07/25/2020, 1:20 PMRobert Jaros
07/25/2020, 1:21 PMRobert Jaros
07/25/2020, 1:21 PMRobert Jaros
07/25/2020, 1:22 PMBig Chungus
07/25/2020, 1:28 PMBig Chungus
07/25/2020, 1:28 PMRobert Jaros
07/25/2020, 1:32 PMBig Chungus
07/25/2020, 1:32 PMapi(npm("kvision-assets"), version)
Ilya Goncharov [JB]
07/25/2020, 3:36 PMIlya Goncharov [JB]
07/25/2020, 3:39 PMRobert Jaros
07/25/2020, 3:46 PMRobert Jaros
07/25/2020, 3:48 PMIlya Goncharov [JB]
07/25/2020, 3:58 PMboth
mode for particular library, it can be done with difference in versions or name, if it is convenient for your particular case.
both
is only for library authoring in fact, it is questionable, what default should be, but we decided, that by default we will use legacy
mode for compatibility, and necessity to enable both mode explicitly because of its specific behaviourBig Chungus
07/25/2020, 4:02 PMIlya Goncharov [JB]
07/25/2020, 4:07 PMmoduleName
for this
So you can use
kotlin {
js {
moduleName = “foo”
browser()
}
}
And for legacy compiler foo
name will be used