If I'm configuring my JS target using the MPP plug...
# javascript
a
If I'm configuring my JS target using the MPP plugin with
js { nodejs {} }
, how do I access Node global objects like
process
etc. from the
jsMain
source set?
👀 1
Is there a dependency I need to add besides
kotlin-stdlib-js
?
i
@AJ Alt Hi! Unfortunately, there are no external declarations for node js. We have a future request - https://youtrack.jetbrains.com/issue/KT-28531
a
Thank you for the information! I noticed other messages in the slack where people mention using node objects. I assume they've all written
external
definitions for them? (e.g. https://kotlinlang.slack.com/archives/C0B8L3U69/p1574418122205800?thread_ts=1574410411.204900&cid=C0B8L3U69)
i
I think yes
👍 1