Skip to content

yisar/ijc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ijc

Tiny Javascript compiler

  • Simplest bundler algorithm
  • Smallest JavaScript compiler

input

import { hello } from './hello.js'

function world() {
  return 'World'
}

console.log(hello)
console.log(world())

output

(function (global) {
const I$hello_js$hello = 'hello';

function I$index_js$world() {
  return 'World'
}

console.log(I$hello_js$hello);
console.log(I$index_js$world());
})(typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);

About

Tiny JavaScript Compiler

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 18

Languages