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.

Hero does not seem to use all options of tsconfig.json

See original GitHub issue

The 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:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Wscatscommented, Aug 30, 2020

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.

This is a good suggestion, I will try to add this ability later.

0reactions
Huseriatocommented, Aug 30, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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