Hero does not seem to use all options of tsconfig.json
See original GitHub issueThe compilation of *.ts files always inserts the following block in the resulting JavaScript files:
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Using the tsc
command in the same folder respects the tsconfig.json and is not inserting this block. How can I stop Hero from doing so?
I’m concatenating my files later by my own. I don’t want to install tsc on a production system to solve this. The software is modular, so I’ll only ship the precompiled files and combine them later (depending on what is really needed).
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TSConfig Reference - Docs on every TSConfig option
This does not affect errors on the basis of code which appears to be unreachable ... will look for files starting at the...
Read more >tsconfig paths and module resolution errors in VS Code #8138
I've used tsserver in dozens of projects (including Angular projects that don't use angular-cli), and got it to find the proper tsconfig.json in ......
Read more >Extending tsconfig.json file doesn't seem to extend anything
Path-based compiler options (outDir, outFile, rootDir, include, files) are resolved from the config file they're found in).
Read more >Nakama: TypeScript Runtime | Heroic Labs Documentation
It's useful to implement game code you would not want to run on the ... now have a “tsconfig.json” file which describes the...
Read more >Features | Vite
Note that CSS minification will run after PostCSS and will use build.cssTarget option. CSS Modules #. Any CSS file ending with .module.css is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a good suggestion, I will try to add this ability later.
Thank you, is the tsconfig.json also working, when placed in project base directory? Typescript is usually walking through the parent directories until it finds a config.