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
1 answer

Babel 6, unexpected token while try to transplie dir

I am trying to use Babel 6 to transplie ES2015 javascript files. Two most simple cases, 1 file and files from a directory. install babel-cli and babel-preset-es2015, create a .babelrc. use command babel app.js --out-file appout.js. complete, no…
Maxi Wu
  • 1,274
  • 3
  • 20
  • 38
0
votes
1 answer

typescript kendo-ui call method from string

i'm using dropdrownlist within grid from kendo-ui (html) with typescript problem is i have to call a function in string export class ClassName extends BaseController { public configureGrid() { .... //other codes …
Amirreza
  • 575
  • 9
  • 25
0
votes
1 answer

Running mocha with babel es2015 not working properly

I'm trying really hard to get Babel 6 to work for me. I use 5 quite successfully for my day job (for React development), but 6 doesn't seem to be integrating with Mocha as expected. I have these devDependencies, scripts, and babel configuration: { …
Jacob
  • 77,566
  • 24
  • 149
  • 228
0
votes
1 answer

How to transpile ES6 to ES5 without bloat for production in the browser?

Is there any transpiler configuration/option available which transpiles ES6, e.g. for-of-loops to ES5 which is really usable on a production website? The best i found is to include an extra polyfill, which results in the at least double file size of…
bigbeee
  • 3
  • 1
-1
votes
1 answer

Typescript and javascript on the same project

I have a NodeJS project which I would like to have typescript files on it. My first attempt was to create a typescript file with content below. utilts.ts : export const delimitify = ( strings:Array, delimiter:string ):string =>…
-1
votes
1 answer

Fortran/C Unformatted Binary File on Windows/iOS

I have a Fortran program that I used f2c to convert to C because I need to run it on iOS so this would be my only option. The program relies on file reading and writing, specifically it generates an unformatted binary file that it later reads from…
ez4nick
  • 9,756
  • 12
  • 37
  • 69
-1
votes
1 answer

C# Harmony transpiler crashing when using Call or CallVirt

I'm attempting to mod a game, and I'm using Harmony 1.2.0.1. I've been attempting to use a transpiler to add a separate condition to an if statement, however when the method that I am patching runs, the game completely crashes. I can't find any…
Lionmeow
  • 79
  • 6
-1
votes
1 answer

Is this transpilation issue correctly filed against babel-jest?

I raised an issue https://github.com/facebook/jest/issues/11504 against the jest project, which I think is responsible for maintaining babel-jest. Transpilation totally fails after adding apparently harmless and error-free code. However, there are a…
cefn
  • 2,895
  • 19
  • 28
-1
votes
2 answers

Babel Standalone Invalid plugin @babel/plugin-proposal-decorators

I am trying to use babel standalone inside a react app to transpile Angular TypeScript. The short version: How can I use @babel/plugin-proposal-decorators and @babel/plugin-proposal-class-properties with babel standalone? The long version: This…
cbutler
  • 833
  • 13
  • 36
-1
votes
2 answers

Is translating my own programming language to another language and compiling it a good practice?

I have my grammar ready and tested in Antlr4 actually I want to have my language source files to become executable and fast enough so I think I have these solutions: LLVM JVM Generating a source code in another language and then compile the…
-1
votes
2 answers

Transpile JSX to JS on server or browser?

Very new to JSX but reading around it seems like both server-side and client-side (in browser) transpilation are possible options. Is JSX intended to be sent to the client and typically transpiled in browser. Does this mean modern versions of…
anon
-1
votes
1 answer

What language is "position: absolute 12px * * 10px;"

I have inherited some code that has odd-looking css in it: .page-back { display: inline-block; position: absolute 12px * * 10px; width: 40px; height: 40px; text-align: center; } The offending line is the one with position: in…
Jim B.
  • 4,512
  • 3
  • 25
  • 53
-1
votes
1 answer

Transpile Node script for testing

I have some es6 modules I would like to unit test in node. Renaming all the files to .mjs is not a workable option. For simplicity, let's say I have a file like this mymodule.js that has these contents: export default { saySomething: function ()…
Sir Robert
  • 4,686
  • 7
  • 41
  • 57
-1
votes
1 answer

Custom PHP interpretor?

Compared to some languages, PHP's syntax is a little bit long (e.g. in java calling the method of an an object is done with a period ( . ) instead of phps (->) ). I have always wanted to write my own language but I'm only a first year bachelors…
Franky Chanyau
  • 1,010
  • 1
  • 15
  • 24
-1
votes
1 answer

window.parseInt does not compile - TypeScript

In the below typescript syntax, var strToNum: number = window.parseInt("5"); gives error: tstut.ts(15,31): error TS2551: Property 'parseInt' does not exist on type 'Window'. Did you mean 'parent'? DOM has, > window.parseInt ƒ parseInt() {…
overexchange
  • 15,768
  • 30
  • 152
  • 347
1 2 3
28
29