Package detail

tsc-bundle

cereschen16MIT0.1.3

npm i tsc-bundle -g

readme

usage

npm i tsc-bundle -g

tscb use_shared.ts out.ts

Then use tsc to run the generated file

example

// use_shared.ts
import shared from "./shared";
void function main() {
  console.log(shared.num * 2);
}
// shared.ts
const num = 1
export default {
  num
}

or

// use_shared.ts
import { num } from "./shared" // now support but the namespace name is the file name
void function main() {
  console.log(num * 2);
}

unsupport