Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f912f548e | ||
|
|
41d721e372 | ||
|
|
df6ffe025c | ||
|
|
28b6b4af44 | ||
|
|
9e80071caa | ||
|
|
0da4303358 | ||
|
|
83e225f30a | ||
|
|
420505ca40 | ||
|
|
f9a26fd903 | ||
|
|
ca0539190e | ||
|
|
2e3226b520 | ||
|
|
7959852eeb |
1
.jscsrc
1
.jscsrc
@@ -33,7 +33,6 @@
|
|||||||
"requireCommaBeforeLineBreak": true,
|
"requireCommaBeforeLineBreak": true,
|
||||||
"requireSpaceBeforeBinaryOperators": true,
|
"requireSpaceBeforeBinaryOperators": true,
|
||||||
"requireSpaceAfterBinaryOperators": true,
|
"requireSpaceAfterBinaryOperators": true,
|
||||||
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
||||||
"requireLineFeedAtFileEnd": true,
|
"requireLineFeedAtFileEnd": true,
|
||||||
"requireCapitalizedConstructors": true,
|
"requireCapitalizedConstructors": true,
|
||||||
"requireDotNotation": true,
|
"requireDotNotation": true,
|
||||||
|
|||||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -11,10 +11,18 @@
|
|||||||
|
|
||||||
_Note: Gaps between patch versions are faulty/broken releases._
|
_Note: Gaps between patch versions are faulty/broken releases._
|
||||||
|
|
||||||
|
## 3.3.4
|
||||||
|
|
||||||
|
* **Polish**
|
||||||
|
* Add istanbul `require` interop.
|
||||||
|
* **Bug Fix**
|
||||||
|
* Fix incorrect source map column tracking in specific scenarios.
|
||||||
|
|
||||||
## 3.3.3
|
## 3.3.3
|
||||||
|
|
||||||
* **Bug Fix**
|
* **Polish**
|
||||||
* Remap top level `this` to `undefined` instead of throwing an error.
|
* Remap top level `this` to `undefined` instead of throwing an error.
|
||||||
|
* **Bug Fix**
|
||||||
* Run `selfContained` transformer over the regenerator runtime when building `6to5-runtime`.
|
* Run `selfContained` transformer over the regenerator runtime when building `6to5-runtime`.
|
||||||
* Fix `t.isReferenced` not properly allowing `value` nodes.
|
* Fix `t.isReferenced` not properly allowing `value` nodes.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* when found, before invoking the "real" _6to5-node(1) executable.
|
* when found, before invoking the "real" _6to5-node(1) executable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var args = ["--harmony", __dirname + "/_6to5-node"];
|
var args = [__dirname + "/_6to5-node"];
|
||||||
|
|
||||||
process.argv.slice(2).forEach(function(arg){
|
process.argv.slice(2).forEach(function(arg){
|
||||||
var flag = arg.split("=")[0];
|
var flag = arg.split("=")[0];
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ CodeGenerator.prototype.print = function (node, parent, opts) {
|
|||||||
newline(true);
|
newline(true);
|
||||||
|
|
||||||
if (opts.before) opts.before();
|
if (opts.before) opts.before();
|
||||||
this.map.mark(node, "start");
|
this.map.mark(node);
|
||||||
|
|
||||||
this[node.type](node, this.buildPrint(node), parent);
|
this[node.type](node, this.buildPrint(node), parent);
|
||||||
|
|
||||||
@@ -189,7 +189,6 @@ CodeGenerator.prototype.print = function (node, parent, opts) {
|
|||||||
}
|
}
|
||||||
if (needsParens) this.push(")");
|
if (needsParens) this.push(")");
|
||||||
|
|
||||||
this.map.mark(node, "end");
|
|
||||||
if (opts.after) opts.after();
|
if (opts.after) opts.after();
|
||||||
|
|
||||||
newline(false);
|
newline(false);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SourceMap.prototype.get = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
SourceMap.prototype.mark = function (node, type) {
|
SourceMap.prototype.mark = function (node) {
|
||||||
var loc = node.loc;
|
var loc = node.loc;
|
||||||
if (!loc) return; // no location info
|
if (!loc) return; // no location info
|
||||||
|
|
||||||
@@ -46,9 +46,7 @@ SourceMap.prototype.mark = function (node, type) {
|
|||||||
column: position.column
|
column: position.column
|
||||||
};
|
};
|
||||||
|
|
||||||
var original = loc[type];
|
var original = loc.start;
|
||||||
|
|
||||||
if (generated.line === original.line && generated.column === original.column) return; // nothing to map
|
|
||||||
|
|
||||||
map.addMapping({
|
map.addMapping({
|
||||||
source: this.opts.sourceFileName,
|
source: this.opts.sourceFileName,
|
||||||
|
|||||||
0
lib/6to5/optimisation/index.js
Normal file
0
lib/6to5/optimisation/index.js
Normal file
@@ -34,20 +34,14 @@ var cache = registerCache.get();
|
|||||||
var transformOpts = {};
|
var transformOpts = {};
|
||||||
var ignoreRegex = /node_modules/;
|
var ignoreRegex = /node_modules/;
|
||||||
var onlyRegex;
|
var onlyRegex;
|
||||||
var whitelist = [];
|
|
||||||
var exts = {};
|
var exts = {};
|
||||||
var maps = {};
|
var maps = {};
|
||||||
var old = require.extensions[".js"];
|
|
||||||
|
|
||||||
var mtime = function (filename) {
|
var mtime = function (filename) {
|
||||||
return +fs.statSync(filename).mtime;
|
return +fs.statSync(filename).mtime;
|
||||||
};
|
};
|
||||||
|
|
||||||
var loader = function (m, filename) {
|
var compile = function (filename) {
|
||||||
if ((ignoreRegex && ignoreRegex.test(filename)) || (onlyRegex && !onlyRegex.test(filename))) {
|
|
||||||
return old.apply(this, arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
if (cache) {
|
if (cache) {
|
||||||
@@ -57,11 +51,12 @@ var loader = function (m, filename) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result = result || to5.transformFileSync(filename, extend({
|
if (!result) {
|
||||||
whitelist: whitelist,
|
result = to5.transformFileSync(filename, extend({
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
ast: false
|
ast: false
|
||||||
}, transformOpts));
|
}, transformOpts));
|
||||||
|
}
|
||||||
|
|
||||||
if (cache) {
|
if (cache) {
|
||||||
result.mtime = mtime(filename);
|
result.mtime = mtime(filename);
|
||||||
@@ -70,7 +65,43 @@ var loader = function (m, filename) {
|
|||||||
|
|
||||||
maps[filename] = result.map;
|
maps[filename] = result.map;
|
||||||
|
|
||||||
m._compile(result.code, filename);
|
return result.code;
|
||||||
|
};
|
||||||
|
|
||||||
|
var shouldIgnore = function (filename) {
|
||||||
|
return (ignoreRegex && ignoreRegex.test(filename)) || (onlyRegex && !onlyRegex.test(filename));
|
||||||
|
};
|
||||||
|
|
||||||
|
var istanbulLoader = function (m, filename, old) {
|
||||||
|
// we need to monkey patch fs.readFileSync so we can hook into
|
||||||
|
// what istanbul gets, it's extremely dirty but it's the only way
|
||||||
|
var _readFileSync = fs.readFileSync;
|
||||||
|
|
||||||
|
fs.readFileSync = function () {
|
||||||
|
fs.readFileSync = _readFileSync;
|
||||||
|
return compile(filename);
|
||||||
|
};
|
||||||
|
|
||||||
|
old(m, filename);
|
||||||
|
};
|
||||||
|
|
||||||
|
var normalLoader = function (m, filename) {
|
||||||
|
m._compile(compile(filename), filename);
|
||||||
|
};
|
||||||
|
|
||||||
|
var registerExtension = function (ext) {
|
||||||
|
var old = require.extensions[ext];
|
||||||
|
|
||||||
|
var loader = normalLoader;
|
||||||
|
if (process.env.running_under_istanbul) loader = istanbulLoader; // jshint ignore:line
|
||||||
|
|
||||||
|
require.extensions[ext] = function (m, filename) {
|
||||||
|
if (shouldIgnore(filename)) {
|
||||||
|
old(m, filename);
|
||||||
|
} else {
|
||||||
|
loader(m, filename, old);
|
||||||
|
}
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
var hookExtensions = function (_exts) {
|
var hookExtensions = function (_exts) {
|
||||||
@@ -82,7 +113,7 @@ var hookExtensions = function (_exts) {
|
|||||||
|
|
||||||
each(_exts, function (ext) {
|
each(_exts, function (ext) {
|
||||||
exts[ext] = require.extensions[ext];
|
exts[ext] = require.extensions[ext];
|
||||||
require.extensions[ext] = loader;
|
registerExtension(ext);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ module.exports = {
|
|||||||
"playground.objectGetterMemoization": require("./playground/object-getter-memoization"),
|
"playground.objectGetterMemoization": require("./playground/object-getter-memoization"),
|
||||||
|
|
||||||
react: require("./other/react"),
|
react: require("./other/react"),
|
||||||
"optimisation.react": require("./optimisation/react"),
|
|
||||||
|
|
||||||
_modules: require("./internal/modules"),
|
_modules: require("./internal/modules"),
|
||||||
|
|
||||||
|
|||||||
@@ -1,55 +0,0 @@
|
|||||||
module.exports = BaseOptimiser;
|
|
||||||
|
|
||||||
var object = require("../../../../helpers/object");
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description
|
|
||||||
*
|
|
||||||
* @param {Node} node
|
|
||||||
*/
|
|
||||||
|
|
||||||
function BaseOptimiser(node) {
|
|
||||||
this.methods = object();
|
|
||||||
this.types = object();
|
|
||||||
|
|
||||||
this.node = node;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description
|
|
||||||
*/
|
|
||||||
|
|
||||||
BaseOptimiser.prototype.run = function () {
|
|
||||||
this.getMethods();
|
|
||||||
this.getTypes();
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add an `ObjectExpression` `node` that contains `propTypes`.
|
|
||||||
*
|
|
||||||
* Search it and match it against the types that we can optimise
|
|
||||||
* and register it for consumption later.
|
|
||||||
*
|
|
||||||
* @param {Node} node
|
|
||||||
*/
|
|
||||||
|
|
||||||
BaseOptimiser.prototype.addPropTypes = function (node) {
|
|
||||||
var props = node.properties;
|
|
||||||
|
|
||||||
for (var i = 0; i < props.length; i++) {
|
|
||||||
this.addPropType(props[i]);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register a `Property` node as a prop type.
|
|
||||||
*
|
|
||||||
* We'll try and resolve it to a known type if we can and normalise
|
|
||||||
* it for consumption later.
|
|
||||||
*
|
|
||||||
* @param {Node} prop
|
|
||||||
*/
|
|
||||||
|
|
||||||
BaseOptimiser.prototype.addPropType = function () {
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
module.exports = CreateClassOptimiser;
|
|
||||||
|
|
||||||
var BaseOptimiser = require("./base");
|
|
||||||
var util = require("../../../../util");
|
|
||||||
var t = require("../../../../types");
|
|
||||||
|
|
||||||
function CreateClassOptimiser() {
|
|
||||||
BaseOptimiser.apply(this, arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
util.inherits(CreateClassOptimiser, BaseOptimiser);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all function expressions.
|
|
||||||
*/
|
|
||||||
|
|
||||||
CreateClassOptimiser.prototype.getMethods = function () {
|
|
||||||
var props = this.node.properties;
|
|
||||||
|
|
||||||
for (var i = 0; i < props.length; i++) {
|
|
||||||
var prop = props[i];
|
|
||||||
|
|
||||||
// irrelevant
|
|
||||||
if (!t.isFunctionExpression(prop.value)) continue;
|
|
||||||
|
|
||||||
// deopt
|
|
||||||
if (prop.computed) continue;
|
|
||||||
|
|
||||||
this.methods[prop.key.name] = prop;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Find a `propTypes` property.
|
|
||||||
*/
|
|
||||||
|
|
||||||
CreateClassOptimiser.prototype.getTypes = function () {
|
|
||||||
var props = this.node.properties;
|
|
||||||
|
|
||||||
for (var i = 0; i < props.length; i++) {
|
|
||||||
var prop = props[i];
|
|
||||||
var key = t.toComputedKey(prop, prop.key);
|
|
||||||
|
|
||||||
if (t.isLiteral(key, { value: "propTypes" }) && t.isObjectExpression(prop.value)) {
|
|
||||||
this.addPropTypes(prop.value);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// not found
|
|
||||||
};
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
var CreateClassOptimiser = require("./create-class");
|
|
||||||
var NativeClassOptimiser = require("./native-class");
|
|
||||||
var react = require("../../../helpers/react");
|
|
||||||
|
|
||||||
exports.optional = true;
|
|
||||||
|
|
||||||
exports.CallExpression = function (node) {
|
|
||||||
if (react.isCreateClass(node)) {
|
|
||||||
new CreateClassOptimiser(node.arguments[0]).run();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
exports.CallExpression = function (node) {
|
|
||||||
if (react.isReactComponent(node.superClass)) {
|
|
||||||
new NativeClassOptimiser(node).run();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
module.exports = NativeClassOptimiser;
|
|
||||||
|
|
||||||
var BaseOptimiser = require("./base");
|
|
||||||
var util = require("../../../../util");
|
|
||||||
var t = require("../../../../types");
|
|
||||||
|
|
||||||
function NativeClassOptimiser() {
|
|
||||||
BaseOptimiser.apply(this, arguments);
|
|
||||||
}
|
|
||||||
|
|
||||||
util.inherits(NativeClassOptimiser, BaseOptimiser);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all instance methods.
|
|
||||||
*/
|
|
||||||
|
|
||||||
NativeClassOptimiser.prototype.getMethods = function () {
|
|
||||||
var body = this.node.body;
|
|
||||||
|
|
||||||
for (var i = 0; i < body.length; i++) {
|
|
||||||
var node = body[i];
|
|
||||||
|
|
||||||
// PrivateDeclaration etc
|
|
||||||
if (!t.isMethodDefinition(node)) continue;
|
|
||||||
|
|
||||||
// deopt
|
|
||||||
if (node.computed) continue;
|
|
||||||
|
|
||||||
// irrelevant
|
|
||||||
if (node.static) continue;
|
|
||||||
|
|
||||||
this.methods[node.key.name] = node;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Description
|
|
||||||
*/
|
|
||||||
|
|
||||||
NativeClassOptimiser.prototype.getTypes = function () {
|
|
||||||
|
|
||||||
};
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "6to5",
|
"name": "6to5",
|
||||||
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
||||||
"version": "3.3.3",
|
"version": "3.3.4",
|
||||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||||
"homepage": "https://6to5.org/",
|
"homepage": "https://6to5.org/",
|
||||||
"repository": "6to5/6to5",
|
"repository": "6to5/6to5",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "6to5-runtime",
|
"name": "6to5-runtime",
|
||||||
"description": "6to5 selfContained runtime",
|
"description": "6to5 selfContained runtime",
|
||||||
"version": "3.3.2",
|
"version": "3.3.3",
|
||||||
"repository": "6to5/6to5",
|
"repository": "6to5/6to5",
|
||||||
"author": "Sebastian McKenzie <sebmck@gmail.com>"
|
"author": "Sebastian McKenzie <sebmck@gmail.com>"
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var Test = function Test() {};
|
var Test = function Test() {};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9iYXIvYmFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0lBQU0sSUFBSSxZQUFKLElBQUkiLCJmaWxlIjoic3JjL2Jhci9iYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBUZXN0IHtcblxufSJdfQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9iYXIvYmFyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0lBQU0sZ0JBQUEiLCJmaWxlIjoic3JjL2Jhci9iYXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJjbGFzcyBUZXN0IHtcblxufSJdfQ==
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
arr.map(function (x) {
|
arr.map(function (x) {
|
||||||
return x * MULTIPLIER;
|
return x * MULTIPLIER;
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9mb28uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQUEsQ0FBQztTQUFJLENBQUMsR0FBRyxVQUFVO0NBQUEsQ0FBQyxDQUFDIiwiZmlsZSI6InNyYy9mb28uanMiLCJzb3VyY2VzQ29udGVudCI6WyJhcnIubWFwKHggPT4geCAqIE1VTFRJUExJRVIpOyJdfQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9mb28uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLElBQUksVUFBQTtTQUFLLElBQUkiLCJmaWxlIjoic3JjL2Zvby5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["src/bar/bar.js"],"names":[],"mappings":";;IAAM,IAAI,YAAJ,IAAI","file":"src/bar/bar.js","sourcesContent":["class Test {\n\n}"]}
|
{"version":3,"sources":["src/bar/bar.js"],"names":[],"mappings":";;IAAM,gBAAA","file":"src/bar/bar.js","sourcesContent":["class Test {\n\n}"]}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["src/foo.js"],"names":[],"mappings":";;AAAA,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,UAAU;CAAA,CAAC,CAAC","file":"src/foo.js","sourcesContent":["arr.map(x => x * MULTIPLIER);"]}
|
{"version":3,"sources":["src/foo.js"],"names":[],"mappings":";;AAAA,IAAI,IAAI,UAAA;SAAK,IAAI","file":"src/foo.js","sourcesContent":["arr.map(x => x * MULTIPLIER);"]}
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ arr.map(function (x) {
|
|||||||
return x * MULTIPLIER;
|
return x * MULTIPLIER;
|
||||||
});
|
});
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLEdBQUcsQ0FBQyxHQUFHLENBQUMsVUFBQSxDQUFDO1NBQUksQ0FBQyxHQUFHLFVBQVU7Q0FBQSxDQUFDLENBQUMiLCJmaWxlIjoic2NyaXB0Mi5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogTVVMVElQTElFUik7Il19
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQUksSUFBSSxVQUFBO1NBQUssSUFBSSIsImZpbGUiOiJzY3JpcHQyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiYXJyLm1hcCh4ID0+IHggKiBNVUxUSVBMSUVSKTsiXX0=
|
||||||
|
|||||||
@@ -7,5 +7,4 @@ arr.map(function (x) {
|
|||||||
return x * MULTIPLIER;
|
return x * MULTIPLIER;
|
||||||
});
|
});
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyIsInNjcmlwdDIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7SUFBTSxJQUFJLFlBQUosSUFBSTs7OztBQ0FWLEdBQUcsQ0FBQyxHQUFHLENBQUMsVUFBQSxDQUFDO1NBQUksQ0FBQyxHQUFHLFVBQVU7Q0FBQSxDQUFDLENBQUMiLCJmaWxlIjoic2NyaXB0My5qcyIsInNvdXJjZXNDb250ZW50IjpbImNsYXNzIFRlc3Qge1xuXG59IiwiYXJyLm1hcCh4ID0+IHggKiBNVUxUSVBMSUVSKTsiXX0=
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyIsInNjcmlwdDIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7SUFBTSxnQkFBQTs7OztBQ0FOLElBQUksSUFBSSxVQUFBO1NBQUssSUFBSSIsImZpbGUiOiJzY3JpcHQzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiY2xhc3MgVGVzdCB7XG5cbn0iLCJhcnIubWFwKHggPT4geCAqIE1VTFRJUExJRVIpOyJdfQ==
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["script.js","script2.js"],"names":[],"mappings":";;IAAM,IAAI,YAAJ,IAAI;;;;ACAV,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,UAAU;CAAA,CAAC,CAAC","file":"script3.js","sourcesContent":["class Test {\n\n}","arr.map(x => x * MULTIPLIER);"]}
|
{"version":3,"sources":["script.js","script2.js"],"names":[],"mappings":";;IAAM,gBAAA;;;;ACAN,IAAI,IAAI,UAAA;SAAK,IAAI","file":"script3.js","sourcesContent":["class Test {\n\n}","arr.map(x => x * MULTIPLIER);"]}
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":3,"sources":["stdin"],"names":[],"mappings":";;AAAA,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,CAAC;CAAA,CAAC,CAAC","file":"test.js","sourcesContent":["arr.map(x => x * x);"]}
|
{"version":3,"sources":["stdin"],"names":[],"mappings":";;AAAA,IAAI,IAAI,UAAA;SAAK,IAAI","file":"test.js","sourcesContent":["arr.map(x => x * x);"]}
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ arr.map(function (x) {
|
|||||||
return x * x;
|
return x * x;
|
||||||
});
|
});
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsR0FBRyxDQUFDLEdBQUcsQ0FBQyxVQUFBLENBQUM7U0FBSSxDQUFDLEdBQUcsQ0FBQztDQUFBLENBQUMsQ0FBQyIsImZpbGUiOiJzdGRvdXQiLCJzb3VyY2VzQ29udGVudCI6WyJhcnIubWFwKHggPT4geCAqIHgpOyJdfQ==
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsSUFBSSxJQUFJLFVBQUE7U0FBSyxJQUFJIiwiZmlsZSI6InN0ZG91dCIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogeCk7Il19
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[{
|
[{
|
||||||
"original": {
|
"original": {
|
||||||
"line": 1,
|
"line": 1,
|
||||||
"column": 18
|
"column": 13
|
||||||
},
|
},
|
||||||
"generated": {
|
"generated": {
|
||||||
"line": 4,
|
"line": 4,
|
||||||
"column": 14
|
"column": 10
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
"file": "source-maps/full/expected.js",
|
"file": "source-maps/full/expected.js",
|
||||||
"sources": ["source-maps/full/actual.js"],
|
"sources": ["source-maps/full/actual.js"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"mappings": ";;AAAA,GAAG,CAAC,GAAG,CAAC,UAAA,CAAC;SAAI,CAAC,GAAG,CAAC;CAAA,CAAC,CAAC",
|
"mappings": ";;AAAA,IAAI,IAAI,UAAA;SAAK,IAAI",
|
||||||
"sourcesContent": ["arr.map(x => x * x);"]
|
"sourcesContent": ["arr.map(x => x * x);"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
arr.map(function (x) {
|
arr.map(function (x) {
|
||||||
return x * x;
|
return x * x;
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXBzL2lubGluZS9hY3R1YWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxHQUFHLENBQUMsR0FBRyxDQUFDLFVBQUEsQ0FBQztTQUFJLENBQUMsR0FBRyxDQUFDO0NBQUEsQ0FBQyxDQUFDIiwiZmlsZSI6InNvdXJjZS1tYXBzL2lubGluZS9leHBlY3RlZC5qcyIsInNvdXJjZXNDb250ZW50IjpbImFyci5tYXAoeCA9PiB4ICogeCk7Il19
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNvdXJjZS1tYXBzL2lubGluZS9hY3R1YWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxJQUFJLElBQUksVUFBQTtTQUFLLElBQUkiLCJmaWxlIjoic291cmNlLW1hcHMvaW5saW5lL2V4cGVjdGVkLmpzIiwic291cmNlc0NvbnRlbnQiOlsiYXJyLm1hcCh4ID0+IHggKiB4KTsiXX0=
|
||||||
|
|||||||
Reference in New Issue
Block a user