chore(docs): module paths must have explicit .js extension

Traceur 0.80 had a breaking change in the path to modules. Previously
there was an implicit .js extension added but this must now be explicit.
This commit is contained in:
Peter Bacon Darwin 2015-01-09 11:41:01 +00:00
parent bcd6e4c468
commit 8e494396d9
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
var traceur = require('traceur/src/node/traceur.js'); var traceur = require('traceur/src/node/traceur.js');
module.exports = function ParseTreeVisitor() { module.exports = function ParseTreeVisitor() {
return System.get(System.map.traceur + '/src/syntax/ParseTreeVisitor').ParseTreeVisitor; console.log(System.map.traceur);
return System.get(System.map.traceur + '/src/syntax/ParseTreeVisitor.js').ParseTreeVisitor;
}; };

View File

@ -1,5 +1,5 @@
var traceur = require('traceur/src/node/traceur.js'); var traceur = require('traceur/src/node/traceur.js');
module.exports = function SourceFile() { module.exports = function SourceFile() {
return System.get(System.map.traceur + '/src/syntax/SourceFile').SourceFile; return System.get(System.map.traceur + '/src/syntax/SourceFile.js').SourceFile;
}; };

View File

@ -1,5 +1,5 @@
var traceur = require('traceur/src/node/traceur.js'); var traceur = require('traceur/src/node/traceur.js');
module.exports = function TraceurParser() { module.exports = function TraceurParser() {
return System.get(System.map.traceur + '/src/syntax/Parser').Parser; return System.get(System.map.traceur + '/src/syntax/Parser.js').Parser;
}; };