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.

Output not being compiled-down

See original GitHub issue

Current Behavior

Currently the output is not being transpiled so it can be supported on older browsers eg. class {}.

Suggested solution(s)

Use @babel/preset-env and default to ES2015 output

Additional context

It’s problematic because some setups don’t transpile node_modules. This prevents extending classes from tsdx as babel doesn’t like es5->es6 interop.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
jaredpalmercommented, May 19, 2019

Will investigate in the mornjng

0reactions
hedgerhcommented, May 24, 2019

Figured it out. There was a tsconfigOverride declared in the typescript rollup plugin that forced target to esnext. Changed it to default to es5 and it can be declared in a tsconfig at the project level. https://github.com/palmerhq/tsdx/pull/111

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compiles smoothly, does not run, no output (C) - Stack Overflow
1. Your problem is not with C, but the tool called dev-c++ - that's what you need to tag into your question! ·...
Read more >
C++ modules compilation: error C3474, could not open output ...
Sometimes when I compile a C++ module (.ixx) the Microsoft Visual C++ Package Server locks the resulting .ifc file, so that you cannot...
Read more >
1.1. Compiling and Executing Programs
When a non-header file is compiled, we get an object-code file, usually ending in “ .o ”. These are binary files that are...
Read more >
5.8. Filenames and separate compilation - Haskell.org
Filenames and separate compilation¶. This section describes what files GHC expects to find, what files it creates, where these files are stored, and...
Read more >
Troubleshooting and tips — Numba 0.50.1 documentation
Another common reason for Numba not being able to compile your code is that it ... In the terminal ( ... on a...
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