Comparing version 0.0.73 to 0.0.74
{ | ||
"name": "traceur", | ||
"version": "0.0.73", | ||
"version": "0.0.74", | ||
"description": "ES6 to ES5 compiler", | ||
@@ -46,3 +46,4 @@ "keywords": [ | ||
"rsvp": "^3.0.13", | ||
"semver": "2.x" | ||
"semver": "2.x", | ||
"source-map-support": "~0.2.8" | ||
}, | ||
@@ -58,3 +59,3 @@ "devDependencies": { | ||
"semver": "2.x", | ||
"traceur": "0.0.72", | ||
"traceur": "0.0.73", | ||
"promises-aplus-tests": "2.x", | ||
@@ -61,0 +62,0 @@ "compat-table": "git+https://github.com/kangax/compat-table.git#gh-pages", |
@@ -25,3 +25,6 @@ // Copyright 2013 Traceur Authors. | ||
var moduleName = filename.replace(/\\/g, '/').replace(/\.js$/,''); | ||
var metadata = {traceurOptions: options}; | ||
var metadata = { | ||
traceurOptions: options, | ||
outputName: filename | ||
}; | ||
System.import(moduleName, {metadata: metadata}). | ||
@@ -28,0 +31,0 @@ catch(function(err) { |
@@ -33,3 +33,4 @@ // Copyright 2014 Traceur Authors. | ||
evaluateCodeUnit: function(codeUnit) { | ||
var result = module._compile(codeUnit.metadata.transcoded, codeUnit.address); | ||
var result = | ||
module._compile(codeUnit.metadata.transcoded, codeUnit.address); | ||
codeUnit.metadata.transformedTree = null; | ||
@@ -43,2 +44,14 @@ return result; | ||
require('source-map-support').install({ | ||
retrieveSourceMap: function(filename) { | ||
var map = System.getSourceMap(filename); | ||
if (map) { | ||
return { | ||
url: filename, | ||
map: map | ||
}; | ||
} | ||
} | ||
}); | ||
Reflect.global.System = System; | ||
@@ -45,0 +58,0 @@ System.map = System.semverMap(System.version); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1186719
31004
6
+ Addedsource-map-support@~0.2.8
+ Addedsource-map-support@0.2.10(transitive)