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

4 years ago
  1. "use strict";
  2. module.exports = new Map();
  3. // async -> regenerator is better than async -> generator -> regenerator
  4. ifIncluded("transform-regenerator")
  5. .isUnnecessary("transform-async-to-generator");
  6. function ifIncluded(name) {
  7. const set = new Set();
  8. module.exports.set(name, set);
  9. return {
  10. isUnnecessary(name) { set.add(name); return this; }
  11. };
  12. }