JakeSidSmith / tsb

Dead simple TypeScript bundler, watcher, dev server, transpiler, and polyfiller
MIT License
3 stars 0 forks source link

Fix resolved tsconfig #12

Closed JakeSidSmith closed 3 years ago

JakeSidSmith commented 3 years ago

https://github.com/JakeSidSmith/tsb/blob/e141111fe5ddfb9077e0691f44b59fa5e608a112/src/tsconfig.ts#L72

Your tsconfig.json module was set to "CommonJS".
You should target an ES module type e.g. "ESNext" to get the full benefits of this bundler.
We'll handle converting everything to CommonJS for you.

tsconfig.json

{
  "compilerOptions": {
    "module": "CommonJS"
  }
}

tsconfig.extends.json

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "module": "ESNext"
  }
}