Is there a CDN that will serve `kotlin.js` & `...
# javascript
b
Is there a CDN that will serve
kotlin.js
&
kotlin.meta.js
for me?
k
maven central, npm?
b
I mean to the end user, so I don't have to host it on my server. Like getting jQuery from https://code.jquery.com/jquery-3.2.1.min.js instead of https://mySite.example.com/js/jquery-3.2.1.min.js
g
The end user shouldn’t need kotlin. You have to provide a optimized bundle with all in it. See https://kotlinlang.org/docs/reference/javascript-dce.html
b
I'm confused... I tried running my code without
kotlin.js
and it complained. How would it run in the browser of some other person without it? The article you linked, @gaetan, doesn't seem to address this...
g
b
I'm still not sure how that applies here. I'll just serve it up with my own CDN...