mbonnin
10/07/2021, 12:48 PMPlease choose a JavaScript environment to build distributions and run tests.
. I understand the need to specify browser or nodejs for running tests but how does that impact building distribution? I'm building a lib and I would expect the lib to be consumed from both browser and nodejs project so it feels weird having to chose one there.Big Chungus
10/07/2021, 12:54 PMBig Chungus
10/07/2021, 12:54 PMmbonnin
10/07/2021, 12:54 PMmbonnin
10/07/2021, 12:55 PMBig Chungus
10/07/2021, 12:57 PMBig Chungus
10/07/2021, 12:57 PMmbonnin
10/07/2021, 12:58 PMmbonnin
10/07/2021, 12:59 PMMight work depending on what native APIs you useAh, maybe that's what's happening with okio. It's "just" plain js without any specific API so consuming from both is working?
mbonnin
10/07/2021, 1:01 PMbrowser.klib
and node.klib
see what changes.mbonnin
10/07/2021, 1:02 PMBig Chungus
10/07/2021, 1:03 PMmbonnin
10/07/2021, 1:05 PMmbonnin
10/07/2021, 1:05 PM$ diff -s browser.klib node.klib
Files browser.klib and node.klib are identical
mbonnin
10/07/2021, 1:05 PMjsIrJar
Big Chungus
10/07/2021, 1:06 PMmbonnin
10/07/2021, 1:06 PMBig Chungus
10/07/2021, 1:06 PMmbonnin
10/07/2021, 1:06 PMcp apollo-api/build/libs/apollo-api-jsir-3.0.0-alpha08-SNAPSHOT.klib browser.klib
)mbonnin
10/07/2021, 1:06 PMmbonnin
10/07/2021, 1:07 PMuli
10/07/2021, 1:29 PMmbonnin
10/07/2021, 1:31 PMhttp
)mbonnin
10/07/2021, 1:32 PMnodejs()
. The wording of this initial message confused but I think it's fine as I don't care about the main executablembonnin
10/07/2021, 1:42 PM