Skip to content

Instantly share code, notes, and snippets.

@koush
Last active October 5, 2019 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koush/05cd9542bbb511ade06066030c58fc55 to your computer and use it in GitHub Desktop.
Save koush/05cd9542bbb511ade06066030c58fc55 to your computer and use it in GitHub Desktop.
Mac:work$ du -h node_modules/kotlin/
4.0K node_modules/kotlin//kotlin/org/w3c/css/masking
4.0K node_modules/kotlin//kotlin/org/w3c/css
4.0K node_modules/kotlin//kotlin/org/w3c/xhr
4.0K node_modules/kotlin//kotlin/org/w3c/fetch
4.0K node_modules/kotlin//kotlin/org/w3c/files
16K node_modules/kotlin//kotlin/org/w3c/dom/svg
12K node_modules/kotlin//kotlin/org/w3c/dom/css
4.0K node_modules/kotlin//kotlin/org/w3c/dom/url
4.0K node_modules/kotlin//kotlin/org/w3c/dom/pointerevents
8.0K node_modules/kotlin//kotlin/org/w3c/dom/mediacapture
4.0K node_modules/kotlin//kotlin/org/w3c/dom/parsing
8.0K node_modules/kotlin//kotlin/org/w3c/dom/events
4.0K node_modules/kotlin//kotlin/org/w3c/dom/clipboard
140K node_modules/kotlin//kotlin/org/w3c/dom
8.0K node_modules/kotlin//kotlin/org/w3c/workers
4.0K node_modules/kotlin//kotlin/org/w3c/performance
4.0K node_modules/kotlin//kotlin/org/w3c/notifications
172K node_modules/kotlin//kotlin/org/w3c
24K node_modules/kotlin//kotlin/org/khronos/webgl
24K node_modules/kotlin//kotlin/org/khronos
196K node_modules/kotlin//kotlin/org
4.0K node_modules/kotlin//kotlin/jquery/ui
8.0K node_modules/kotlin//kotlin/jquery
12K node_modules/kotlin//kotlin/kotlin/ranges
4.0K node_modules/kotlin//kotlin/kotlin/experimental
8.0K node_modules/kotlin//kotlin/kotlin/comparisons
4.0K node_modules/kotlin//kotlin/kotlin/native/concurrent
4.0K node_modules/kotlin//kotlin/kotlin/native
12K node_modules/kotlin//kotlin/kotlin/js
4.0K node_modules/kotlin//kotlin/kotlin/contracts
4.0K node_modules/kotlin//kotlin/kotlin/reflect/js/internal
4.0K node_modules/kotlin//kotlin/kotlin/reflect/js
12K node_modules/kotlin//kotlin/kotlin/reflect
4.0K node_modules/kotlin//kotlin/kotlin/io
4.0K node_modules/kotlin//kotlin/kotlin/internal
4.0K node_modules/kotlin//kotlin/kotlin/jvm
4.0K node_modules/kotlin//kotlin/kotlin/annotation
8.0K node_modules/kotlin//kotlin/kotlin/math
8.0K node_modules/kotlin//kotlin/kotlin/time
4.0K node_modules/kotlin//kotlin/kotlin/browser
4.0K node_modules/kotlin//kotlin/kotlin/properties
20K node_modules/kotlin//kotlin/kotlin/sequences
4.0K node_modules/kotlin//kotlin/kotlin/dom
4.0K node_modules/kotlin//kotlin/kotlin/coroutines/js/internal
4.0K node_modules/kotlin//kotlin/kotlin/coroutines/js
4.0K node_modules/kotlin//kotlin/kotlin/coroutines/intrinsics
12K node_modules/kotlin//kotlin/kotlin/coroutines
24K node_modules/kotlin//kotlin/kotlin/text
4.0K node_modules/kotlin//kotlin/kotlin/random
148K node_modules/kotlin//kotlin/kotlin/collections
336K node_modules/kotlin//kotlin/kotlin
544K node_modules/kotlin//kotlin
5.6M node_modules/kotlin/
fun main(args: Array<String>) {
println("Hello JavaScript!")
}
const kotlin = require('kotlin')
if (typeof kotlin === 'undefined') {
throw new Error("Error loading module 'test'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'test'.");
}
var test = function (_, Kotlin) {
'use strict';
var println = Kotlin.kotlin.io.println_s8jyv4$;
function main(args) {
println('Hello JavaScript!');
}
_.main_kand9s$ = main;
main([]);
Kotlin.defineModule('test', _);
return _;
}(typeof test === 'undefined' ? {} : test, kotlin);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment