google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.18k stars 578 forks source link

Outdated module wiki / intended use of WebPageTranscoder #2044

Open bennlich opened 8 years ago

bennlich commented 8 years ago

Looking at the modules section of the Language Features wiki, there's the following example:

In a Web page you can use script tags with type="module":

<script type="module" src="ProfileView.js"></script>

and the WebPageTranscoder:

 new traceur.WebPageTranscoder(document.location.href).run(function() {
    // things you want to do with the modules.
  });

See for example, runner.html.

I searched for instances of new traceur.WebPageTranscoder in the repo, but couldn't find any uses in which a callback is passed to run(), as in the above example. Is this an outdated example? If so, what should it be replaced with?