But loadLibrary and compileJavaScript contains in common.js, so now we need load a lot of files: "system.js" , "common.js", "turbo.js", "array.tbs", "malloc.tbs", "types.tbs" and our init script.
My propositions:
1. Make one solid bundle file via webpack or tsc/browserify/gulp/uglifyJS
2. Implement simple method compileString(input: string, target: string, exports: [])
The main problem with existing code is high dependency of turboscript's library, systemjs and very complicated setup process:
But
loadLibrary
andcompileJavaScript
contains in common.js, so now we need load a lot of files: "system.js" , "common.js", "turbo.js", "array.tbs", "malloc.tbs", "types.tbs" and our init script.My propositions:
1. Make one solid
bundle
file via webpack or tsc/browserify/gulp/uglifyJS 2. Implement simple methodcompileString(input: string, target: string, exports: [])