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.
11 lines
426 B
11 lines
426 B
'use strict'; |
|
|
|
var getCategoryFlags = require('./getCategoryFlags'); |
|
var getConditionsForCategory = require('./getConditionsForCategory'); |
|
|
|
/** @type {import('./getCategoryInfo')} */ |
|
module.exports = function getCategoryInfo(category, moduleSystem) { |
|
var conditions = getConditionsForCategory(category, moduleSystem || 'require'); |
|
var flags = getCategoryFlags(category); |
|
return { conditions: conditions, flags: flags }; |
|
};
|
|
|