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.

DISCUSS: Should the default output language be `NO_TRANSPILE`?

See original GitHub issue

It is now possible to output ES_2017 code, and in future we would really prefer to stay more on top of the output language level.

Currently the default output language level is still ES5 to support the most possible browsers by default. Would it now make sense to make the default NO_TRANSPILE, so you get the same language level out as you get in unless you specify otherwise?

Note that we’re still almost certain to support new language levels as input before they are supported for output (just with a much smaller gap between). In such cases NO_TRANSPILE wouldn’t work and we’d need to generate an error if the output language weren’t explicitly specified.

Or would we default to the highest possible? That seems dangerous, since a new release of the compiler that silently switches the output from, say, ES_2019 to ES_2020 would break projects that were unintentionally relying on the fact that the default was ES_2019 just because we hadn’t yet added support for ES_2020

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ctjlewiscommented, Feb 4, 2021

@customcommander Use --compilation_level=WHITESPACE_ONLY for that use case. NO_TRANSPILE is a language_out flag.

1reaction
brad4dcommented, Jul 27, 2020

@christiantjl If NO_TRANSPILE were the default, then projects using the default would end up broken when we add new features that are understood only by the front end (checks) of the compiler and not the back end (optimizations) yet.

Also, it would mean that the default output level would change a lot more frequently, likely taking people unpleasantly by surprise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Default language for output type | SAP Community
I want to change it to FI. Does anyone know, where to customize the defulat language for any output type? Your replies are...
Read more >
How do I change the default output language? - WordHero
To change the default output language, follow these instructions depending on which page you're on: If you're on the Home page ("generator mode"), ......
Read more >
Change the default input language for Windows
Under Default input language, click the language that you want to use as the default language.
Read more >
Create single-language target in Flare (no default language)
But there does not appear to be a way to exclude the default language and only output the translated content from the Lingo...
Read more >
Working with language in HTML (tutorial) - W3C
Always add a lang attribute to the html tag to set the default language of your page. ... you should also use the...
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