You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
364 B
15 lines
364 B
"use strict"; |
|
|
|
module.exports = new Map(); |
|
|
|
// async -> regenerator is better than async -> generator -> regenerator |
|
ifIncluded("transform-regenerator") |
|
.isUnnecessary("transform-async-to-generator"); |
|
|
|
function ifIncluded(name) { |
|
const set = new Set(); |
|
module.exports.set(name, set); |
|
return { |
|
isUnnecessary(name) { set.add(name); return this; } |
|
}; |
|
}
|
|
|