Questions tagged [gulp-traceur]

gulp-traceur is a JavaScript.next to JavaScript-of-today compiler.

gulp-traceur is a JavaScript.next to JavaScript-of-today compiler.

Useful links

4 questions
16
votes
9 answers

angularjs http interceptor class (ES6) loses binding to 'this'

I am building and AngularJS app using ES6 classes with traceur transpiling to ES5 in AMD format. in my module I import the interceptor class and register it as a service, and then register this service with the $httpProvider.interceptors in…
3
votes
2 answers

Using ES6 modules with traceur in single build file

I just have a simple question cant get in any place, heve been googling for it all morning. There is no much info about traceur and when there is is not so clear, at least to me. How should be implemented the ES6 modules when im transpiling with…
Santiago Rebella
  • 2,399
  • 2
  • 22
  • 29
1
vote
1 answer

ReferenceError: $traceurRuntime is not defined (in angularjs app)

I'm using [gulp-traceur][1] to compile es6 to js in my angularjs application (1.x). When I try and compile a for loop, I get the error: ReferenceError: $traceurRuntime is not defined It looks like I need to inject $traceurRuntime into my controller…
Rimian
  • 36,864
  • 16
  • 117
  • 117
0
votes
1 answer

Javascript doesn't recognize typescript require after bundling

Here is my angular module written typescript. /// /// import factory = require('./sharedData'); var sharedData: ng.IModule =…
Aj1
  • 953
  • 2
  • 15
  • 42