Questions tagged [transpiler]

A transpiler is a compiler that translates the source code of one high-level programming language to the source code of another high-level programming language.

Transpilers are also known as compilers.

429 questions
4
votes
0 answers

Typsescript project references, composite and allowJS

I want to be able to share code between a few Typescript projects. ts-project ├── project1 │   ├── package.json │   ├── somecode.ts │   └── tsconfig.json ├── project2 │   ├── somecode.ts │   └── tsconfig.json └── shared ├── dist ├──…
leonormes
  • 979
  • 10
  • 29
4
votes
0 answers

Babel Moving Comments

So I'm using babel-cli and it seems to be moving my comments to different lines. Is there any way I can tell babel to leave comments alone? For instance: console.log('woof'); // x = () => { console.log('woof'); } //…
user1375026
  • 403
  • 4
  • 12
  • 23
4
votes
2 answers

ESLint found too many warnings (maximum: 0) and i cant deploy on firebase function

i am not sure what is preventing me to deploy on firebase Its prevent me from deploying to firebase function. firebase deploy --only functions Can anyone help me to see what is the problem 174:75 warning Unexpected function expression …
phongyewtong
  • 5,085
  • 13
  • 56
  • 81
4
votes
2 answers

JavaScript/TypeScript transpiler workflow

My workflow with JS/HTML has always been write code reload website fix bugs / tweak code goto 2 All my projects are still on AngularJS 1.x, and I'm afraid I have to move on to the TypeScript-cli-transpilation workflow. I don't really understand…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
4
votes
0 answers

How to disable Typescript transpiling?

I'd like to disable Typescript's transpiling, keeping all the code as it is, because I'm using Babel on my project. Is there a way to do it?
Isaac Ferreira
  • 418
  • 3
  • 16
4
votes
1 answer

Run same code in python and javascript

I have a special case in some application code where I need to run some non-trivial validation/math on the frontend (for responsiveness) as well as on the backend (for data integrity). I want to make sure they're in sync, and not write the code…
jstaab
  • 3,449
  • 1
  • 27
  • 40
4
votes
1 answer

What happens when a React app, which contains Flow annotations, is launched?

I'm relatively new to web development. I have a react app which makes use of the usual JSX components. These get compiled to regular html and JavaScript, presumably by a react script created when I first ran create-react-app MyApp. My package.json…
barry
  • 4,037
  • 6
  • 41
  • 68
4
votes
1 answer

@supports won't transpile in Visual Studio LESS file

When trying to use @supports in a LESS file, it won't transpile to CSS in Visual Studio. I get a green line under the space after @supports saying: Colon expected I've tried every possible solution including CSS.supports (JS formatting - which…
Trent
  • 429
  • 1
  • 5
  • 19
4
votes
0 answers

Dynamic es6 module loading via