0.1.3 • Published 5 months ago

tsc-bundle v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

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

0.1.3

5 months ago

0.1.2

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago