Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Erik Arvidsson
@arv
The npm repo is always one off due to the way we self host the code
Erik Arvidsson
@arv
@jimdebeer Take a look at http://kpdecker.github.io/six-speed/
kingIZZZY
@kingIZZZY
@arv i see ok
Nick Winter
@nwinter
Are there any docs for how to do a pure source-to-source compile without using modules with the latest version? I'm doing it this way with 0.0.25, but now I need to update Traceur because its Object.assign polyfill is conflicting with Facebook's. https://github.com/codecombat/aether/blob/master/src/aether.coffee#L296-L310
Jim de Beer
@jimdebeer
@arv thats awesome, thanks!
Sachin Sudheendra
@sachinsudheendra
Hi. Anyone here has had success in running karma + jasmine + traceur to test classes? Any links would be helpful.
Marius Nita
@mariusnita
Hi, is it true that in traceur@0.0.92, a full implementation of Systemis no longer bundled?
e.g. System.import is no longer there
Erik Arvidsson
@arv
System.import has not changed
Marius Nita
@mariusnita
System has register,normalize,get,set,registerModule — by just loading traceur.js in the browser. In older traceur (0.0.8x) System has additional fields — and is an instance of TraceurLoader. Could be something strange I’m doing to load traceur, but I can’t see what.
Erik Arvidsson
@arv
I'll look... @johnjbarton is the System expert
Marius Nita
@mariusnita
(bower-installed traceur in both cases)
cool
But we set it up manually in that file:
<script>
window.System = new traceur.runtime.BrowserTraceurLoader();
System.map = System.semverMap(System.version);
</script>
Marius Nita
@mariusnita
ahh
interesting
thanks
I think in older versions this was happening by default
Yeah. I don't remember when/if this changed.
Found it: google/traceur-compiler@c536e08
Marius Nita
@mariusnita
nice, thanks!
will load by hand
Dan Peddle
@dazld
hey - question, should something like import Foo from 'some-npm-module'include the some-npm-module in the output file..?
Erik Arvidsson
@arv
dazld: At this point we are not trying to convert node modules to es modules. One solution is to compile your modules to commonjs using --modules=commonjs and then use browserify or webpack to bundle the modules together. Then you can import npm modules as in your example.
JavascriptMick
@JavascriptMick

hi guys, getting a wierd error with handling of comments in a typescript file. I have a simple service that is imported and then new()'ed in another class. When I write the service like this...

export class MyService {
    constructor() { }
}

Then everything works ok, but when I include what I thought were innocuous comments in the class file (wip code copied from somewhere else)...

export class MyService {
    constructor() { }
}

/*
export class AnotherService {}
*/

The compilation works ok but I get a wierd error in the browser...

zone.js:101 GET http://localhost:4200/traceur 404 (Not Found)scheduleTask @ zone.js:101ZoneDelegate.scheduleTask @ zone.js:336Zone.scheduleMacroTask @ zone.js:273(anonymous function) @ zone.js:122send @ VM17156:3fetchTextFromURL @ system.src.js:1154(anonymous function) @ system.src.js:1735ZoneAwarePromise @ zone.js:584(anonymous function) @ system.src.js:1734(anonymous function) @ system.src.js:2759(anonymous function) @ system.src.js:3333(anonymous function) @ system.src.js:3600(anonymous function) @ system.src.js:3985(anonymous function) @ system.src.js:4448(anonymous function) @ system.src.js:4700(anonymous function) @ system.src.js:406ZoneDelegate.invoke @ zone.js:323Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426
zone.js:461 Unhandled Promise rejection: Error: XHR error (404 Not Found) loading http://localhost:4200/traceur
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:4200/vendor/zone.js/dist/zone.js:769:30)
        at ZoneDelegate.invokeTask (http://localhost:4200/vendor/zone.js/dist/zone.js:356:38)
        at Zone.runTask (http://localhost:4200/vendor/zone.js/dist/zone.js:256:48)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:4200/vendor/zone.js/dist/zone.js:423:34)
    Error loading http://localhost:4200/traceur
    Error loading http://localhost:4200/app/notes/my.service.js as "./my.service" from http://localhost:4200/app/notes/notes.component.js ; Zone: <root> ; Task: Promise.then ; Value: Error: Error: XHR error (404 Not Found) loading http://localhost:4200/traceur(…)consoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:463 Error: Uncaught (in promise): Error: Error: XHR error (404 Not Found) loading http://localhost:4200/traceur(…)

I am using a standard angular-cli project so the system.js loader is doing the loading.. any clues?

Erik Arvidsson
@arv
This does not seem to be vanilla traceur. It is not clear to me if angular-cli does something with comments. Traceur totally ignores all comments.
BOINCUJKjRkdJz
@BOINCUJKjRkdJz
This message was deleted
noschoollee
@noschoollee
How to enable experimental features from Traceur 0.0.111 in Browser
Erik Arvidsson
@arv
@noschoollee Are you using a <script type="module">? If so you can pass the options using traceurOptionsattribute as in: https://github.com/google/traceur-compiler/blob/master/demo/async.html#L33
noschoollee
@noschoollee
@arv Is '@XXX()' enable?
Erik Arvidsson
@arv
@noschoollee There is annotations but we never added decorator support. Patches welcome.
CBuntrock
@CBuntrock
hello everyone. Am I correct that traceur is probably the only es6-compiler that allows on the fly compilation? because all others need always a source file and a compiled file but with traceur I can always use the source files directly...
dasdcs1
@dasdcs1
This message was deleted
tanjian
@11875258
Hi, I come to say hello, I came here for the first time.
ric026
@ric026
Hai
Karl Bateman
@karlbateman
Hi all..
Bitcollage
@SerkanSipahi
hi
Karl Bateman
@karlbateman
Anyone got a webpack config for a node app with Traceur and Closure? I'm struggling to get the two working..
Bitcollage
@SerkanSipahi
@karlbateman why do you use traceur?
use babeljs
better choice :)
traceur is since "15 Sep 2016" no more maintained !
Karl Bateman
@karlbateman
@SerkanSipahi Thanks I didn't realise it was unmaintained. I have Closure working with webpack and I do use Babel.
Erik Arvidsson
@arv
@karlbateman We should probably update the README to tell people to go to Babel if they want the latest features since no one is actively contributing to Traceur any more.
Renato Marinho
@renatomarinho
This message was deleted
Renato Marinho
@renatomarinho
This message was deleted
jayboyY1
@jayboyY1
file:///storage/emulated/0/Download/images.jpeg