tsc-bundle

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tsc-bundle

Weekly Downloads

88

Version

0.1.3

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • cereschen