-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
- Test both Babel 6 and Babel 7 - Add an OVERWRITE=true flag to automatically regenerate outputs - Use external-helpers instead of manually removing the helper with a regex
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var testModule = Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const testModule = Promise.resolve('test-module').then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const testModule = Promise.resolve('test-module').then(s => require(s)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var testModule = Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const testModule = Promise.resolve('test-module').then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const testModule = Promise.resolve('test-module').then(s => require(s)); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}).then(function () { | ||
return Promise.resolve('test-module-2').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
}); | ||
|
||
Promise.all([Promise.resolve('test-1').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}), Promise.resolve('test-2').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}), Promise.resolve('test-3').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
})]).then(function () {}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Promise.resolve('test-module').then(s => require(s)).then(() => Promise.resolve('test-module-2').then(s => require(s))); | ||
|
||
Promise.all([Promise.resolve('test-1').then(s => require(s)), Promise.resolve('test-2').then(s => require(s)), Promise.resolve('test-3').then(s => require(s))]).then(() => {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}).then(function () { | ||
return Promise.resolve('test-module-2').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
}); | ||
Promise.all([Promise.resolve('test-1').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}), Promise.resolve('test-2').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}), Promise.resolve('test-3').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
})]).then(function () {}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Promise.resolve('test-module').then(s => require(s)).then(() => Promise.resolve('test-module-2').then(s => require(s))); | ||
Promise.all([Promise.resolve('test-1').then(s => require(s)), Promise.resolve('test-2').then(s => require(s)), Promise.resolve('test-3').then(s => require(s))]).then(() => {}); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var MODULE = Object('test-module'); | ||
|
||
Promise.resolve('' + String(MODULE)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('test-' + String(MODULE)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const MODULE = Object('test-module'); | ||
|
||
Promise.resolve(`${MODULE}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`test-${MODULE}`).then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const MODULE = Object('test-module'); | ||
|
||
Promise.resolve(`${MODULE}`).then(s => require(s)); | ||
Promise.resolve(`test-${MODULE}`).then(s => require(s)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var MODULE = Object('test-module'); | ||
Promise.resolve("".concat(MODULE)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("test-".concat(MODULE)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const MODULE = Object('test-module'); | ||
Promise.resolve(`${MODULE}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`test-${MODULE}`).then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const MODULE = Object('test-module'); | ||
Promise.resolve(`${MODULE}`).then(s => require(s)); | ||
Promise.resolve(`test-${MODULE}`).then(s => require(s)); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Promise.resolve('my-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('my-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Promise.resolve('my-module').then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve('my-module').then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Promise.resolve('my-module').then(s => require(s)); | ||
Promise.resolve('my-module').then(s => require(s)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Promise.resolve('my-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('my-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Promise.resolve('my-module').then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve('my-module').then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Promise.resolve('my-module').then(s => require(s)); | ||
Promise.resolve('my-module').then(s => require(s)); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
} | ||
|
||
getModule().then(function () {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
} | ||
|
||
getModule().then(() => {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(s => require(s)); | ||
} | ||
|
||
getModule().then(() => {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
} | ||
|
||
getModule().then(function () {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
} | ||
|
||
getModule().then(() => {}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function getModule(path) { | ||
return Promise.resolve('test-module').then(s => require(s)); | ||
} | ||
|
||
getModule().then(() => {}); |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Promise.resolve('' + String({ 'answer': 42 })).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(['foo', 'bar'])).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + 42).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(void 0)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(undefined)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(null)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(true)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve('' + String(Symbol())).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Promise.resolve(`${{ 'answer': 42 }}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${['foo', 'bar']}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${42}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${void 0}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${undefined}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${null}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${true}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${Symbol()}`).then(s => babelHelpers.interopRequireWildcard(require(s))); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Promise.resolve(`${{ 'answer': 42 }}`).then(s => require(s)); | ||
Promise.resolve(`${['foo', 'bar']}`).then(s => require(s)); | ||
Promise.resolve(`${42}`).then(s => require(s)); | ||
Promise.resolve(`${void 0}`).then(s => require(s)); | ||
Promise.resolve(`${undefined}`).then(s => require(s)); | ||
Promise.resolve(`${null}`).then(s => require(s)); | ||
Promise.resolve(`${true}`).then(s => require(s)); | ||
Promise.resolve(`${Symbol()}`).then(s => require(s)); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Promise.resolve("".concat({ | ||
'answer': 42 | ||
})).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(['foo', 'bar'])).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(42)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(void 0)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(undefined)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(null)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(true)).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); | ||
Promise.resolve("".concat(Symbol())).then(function (s) { | ||
return babelHelpers.interopRequireWildcard(require(s)); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Promise.resolve(`${{ | ||
'answer': 42 | ||
}}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${['foo', 'bar']}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${42}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${void 0}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${undefined}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${null}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${true}`).then(s => babelHelpers.interopRequireWildcard(require(s))); | ||
Promise.resolve(`${Symbol()}`).then(s => babelHelpers.interopRequireWildcard(require(s))); |