- On the IR plugin, can `distribution` be applied...
# javascript
f
• On the IR plugin, can
distribution
be applied independently to the two
browser
and
nodejs
sub-targets?
Copy code
browser {
           
            @Suppress("OPT_IN_USAGE")
            distribution {
                directory = File("$projectDir/build/dist/browser")
            }
        }

        nodejs{
            
            @Suppress("OPT_IN_USAGE")
            distribution {
                directory = File("$projectDir/build/dist/node")
            }
        }
It seems the second one always overrides the first? • Somehow related, when generating a library, what is the difference in the generated artefacts between the
browser
and
nodejs
sub-targets.
v
Indeed, those distribution blocks are identical to doing
Copy code
binaries.all {
    distribution.apply {
        directory = File("...")
    }
}