Sam Hamburger
12/01/2020, 3:23 PMBig Chungus
12/01/2020, 3:35 PMSam Hamburger
12/01/2020, 3:35 PMBig Chungus
12/01/2020, 3:36 PMBig Chungus
12/01/2020, 3:37 PMBig Chungus
12/01/2020, 3:38 PMSam Hamburger
12/01/2020, 3:54 PMSam Hamburger
12/01/2020, 3:57 PMBig Chungus
12/01/2020, 3:59 PMankushg
12/02/2020, 3:49 PMjs-bundle
umbrella module in our project that depends on every other module we want to call from JS
• configuring DCE for js-bundle
to keep any entrypoints we need to access from JS
• configuring DCE for js-bundle
to output to something like "$buildDir/distributions"
Now, when you run js-bundle:browserDistribution
, you should have a bunch of minified module-specific files in js-bundle/build/distributions
-- including your very own stripped-down version of kotlin.js
At Quizlet, we have some code to stitch together several package.json
files with properly declared dependencies for every module (everything depends on our custom kotlin
module, kotlin
depends on nothing, some modules depend on serialization
, some modules depend on each other)
If you've just got one module you need to call from JS, you might be able to combine everything into one DCEd artifact that includes your minified kotlin stdlib
We currently just upload those files into a git repo under separate tags and let yarn deal with things, but we're making progress to publish into an (internal) NPM repositorySam Hamburger
12/16/2020, 3:54 PM