tsc-bundle
v0.1.3
Published
`npm i tsc-bundle -g`
Downloads
46
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);
}