question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to specify default tsconfig options

See original GitHub issue

Hello,

I am trying to make microbundle switch to using this plugin for typescript compilation (see developit/microbundle#71).

As part of that change (and to keep with the #0CJS approach of microbundle) we’d like to generate declaration by default when the user does not provide a tsconfig.json. However if the user explicitly does not want declaration files to be generated, we should respect that.

Currently there is only a way to override tsconfig options with tsconfigOverride. Would you be open to adding a tsconfigDefaults option that would be overridden by explicit tsconfig.json values ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ezolenkocommented, Jan 31, 2018

Check if tsconfigDefaults branch works for you.

1reaction
ezolenkocommented, May 25, 2022

Should be in 0.11.0 now

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Reference - Docs on every TSConfig option
From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.
Read more >
Please add default values to tsconfig.json compiler ... - GitHub
Please add default values to tsconfig.json compiler options specification so it won't be a matter of guessing whether to be required to add...
Read more >
What are the default compilerOptions in a TypeScript tsconfig ...
1 Answer 1 · charset : utf8. You don't need to mess with this in most cases · locale : en-us . I...
Read more >
TypeScript tutorial with Visual Studio Code
Add a simple tsconfig.json that set the options to compile to ES5 and use ... By default, TypeScript includes all the .ts files...
Read more >
Configuring TypeScript compiler - inDepthDev
If both outDir and outFile options are specified, the latter takes precedence and the outDir option is ignored. By default, TS compiler produces...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found