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
0
votes
0 answers

Using Export Default { myNamedModule } - and then importing that named module in React Native?

I've spent a while tinkering with my Babel configurations. I'm not an expert, but I'm also far inexperienced with Babel. I am pretty new to trying to configure it with regards to React-Native though. I tried a lot of things to get default exports…
Slbox
  • 10,957
  • 15
  • 54
  • 106
0
votes
1 answer

Run NodeJS server with ES6 feature

I use NodeJS 0.12.7 version. I have a question related launch NodeJS server with ES6 feature. I need to transpile node_modules packages from ES6 to ES5 to run NodeJS. How can I do it?
Maksim
  • 155
  • 1
  • 2
  • 17
0
votes
0 answers

Babel - Recursively transpile JS files in a directory and overwrite in the same file

I want to transpile JS files in a folder recursively and overwrite the same files with transpiled JS. babel build/sample.js --out-file build/sample.js Using the above command, I can transpile a single file. How could I do this recursively over a…
Gugan
  • 1,625
  • 2
  • 27
  • 65
0
votes
0 answers

Why does typescript transpile dead code for decorators?

in my transpiled code, I see this: var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) { // ... undefined && undefined.__decorate should always be falsey. and the the function then MUST be the value of…
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352
0
votes
1 answer

How to use Babel or webpack in a old php site with separate modules

I have an old project and I cannot use ES6 syntax because I don't know how to implement Babel or Webpack to transpile ES6 to ES5. All the js modules are executed in a main.php file like this: