I am trying to extend Error with ES6 and Babel. It isn't working out.  class MyError extends Error {   constructor(m) {     super(m);   } }  var error = new Error("ll"); var myerror = new MyError("ll"); console.log(error.message...
Javascript seems to become popular as an implementation language for other programming languages. The article Lightweight compilation of (C)LP to JavaScript. ICLP 2012 drew my attention on this.  There are a lot of proof-of-concept prototypes for Pr...
i wonder, if there's any transpiler available, which converts (simple) php code to javascript?  what i am not looking for is ajax stuff or javascript libraries imitating php functionality, but i am looking for a translater, which is able to gene...
gulp.task('build:server:js', function(){   return gulp.src("server/**/*.js")     .pipe(sourcemaps.init())     .pipe(babel({       "presets": ["es2015", "react", "stage-0"]     }))     .pipe(sourcemaps.w...
Do I really need Babel or other transpilers to use ES6 in React?  I was looking at the chart https://kangax.github.io/compat-table/es6/  Seems like my current browser Chrome (latest stable version) supports almost all the ES6 features...  If I can us...
Is it possible to configure webpack to do the equivalent of:  babel src --watch --out-dir lib   So that a directory structure that looks like this:  - src   - alpha     - beta.js     - charlie        - delta.js     - echo.js     - foxtrot       - gol...
I'm working on a JS library and I want to transpile all javascript code written in ES6 to ES5 standard to get more support in current browsers.  The thing is I want to use Babel with the Gulp tasks, so I've installed all this NPM packages [pa...
I'm using browserify and babel to transpile & bundle my script. The problem is when I'm using React 16, it gives me this error message:     Uncaught Error: Minified React error #200; visit http://facebook.github.io/react/docs/error-decode...
As an iOS developer coding in Swift, I find it increasingly annoying to have to coordinate the same code written in Swift with front-end developers coding in JavaScript. It would be much neater to implement common functionality in one place and then...
OK so I have an interesting situation in setting up my Node.js TypeScript project.  I want to be able to refer to my local modules using a non-relative require reference.  The way TypeScript and Node.js look up modules is to look for a node_modules d...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.