Compare commits

...

4 Commits

Author SHA1 Message Date
Sebastian McKenzie
4379441277 v3.0.3 2015-01-28 14:17:26 +11:00
Sebastian McKenzie
a955af06e0 remove opts from transform output 2015-01-28 14:14:55 +11:00
Sebastian McKenzie
8f69e59f29 ignore underscored options - fixes #29 2015-01-28 14:14:33 +11:00
Sebastian McKenzie
efda5ca897 3.0.2 2015-01-28 13:59:29 +11:00
3 changed files with 3 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ File.normaliseOptions = function (opts) {
opts = clone(opts);
for (var key in opts) {
if (File.validOptions.indexOf(key) < 0) {
if (key[0] !== "_" && File.validOptions.indexOf(key) < 0) {
throw new ReferenceError("Unknown option: " + key);
}
}
@@ -349,7 +349,6 @@ File.prototype.generate = function () {
var result = {
code: "",
opts: opts,
map: null,
ast: null
};

View File

@@ -1,7 +1,7 @@
{
"name": "6to5",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "3.0.2",
"version": "3.0.3",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://6to5.org/",
"repository": "6to5/6to5",

View File

@@ -1,6 +1,6 @@
{
"name": "6to5-runtime",
"description": "6to5 selfContained runtime",
"version": "3.0.1",
"version": "3.0.2",
"author": "Sebastian McKenzie <sebmck@gmail.com>"
}