When I compile a simple hallo-world app the compil...
# javascript
k
When I compile a simple hallo-world app the compiler outputs a bunch of files: •`kotlin.js` •`kotlin.meta.js` •`main.js` •`main.meta.js` •`root-package.kjsm` Is it okay to just keep
kotlin.js
and
main.js
in production?
b
yes, it’s ok, .met.js and .kjsm files contain metadata for compiler, you need them only if you develop a library i.e you want to consume this API from other modules.
k
Okay, thanks a lot!
You don't happen to know the answer to this question too? https://discuss.kotlinlang.org/t/how-do-i-load-a-json-file/4422
b
@karelpeeters I’ve answered
k
Amazing, thank you very much! I'm new to JavaScript as well, so my question might have been a bit dumb.