mirror of
https://gh.wpcy.net/https://github.com/djav1985/v-wordpress-plugin-updater.git
synced 2026-04-28 08:02:16 +08:00
20 lines
640 B
JavaScript
20 lines
640 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
|
|
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
|
'use strict';
|
|
|
|
const mediaQueryListParser = require('@csstools/media-query-list-parser');
|
|
const getAtRuleParams = require('./getAtRuleParams.cjs');
|
|
|
|
/**
|
|
* @param {import('postcss').AtRule} atRule
|
|
* @returns {ReturnType<typeof import('@csstools/media-query-list-parser').parse>}
|
|
*/
|
|
function parseMediaQuery(atRule) {
|
|
const mediaQueries = mediaQueryListParser.parse(getAtRuleParams(atRule), {
|
|
preserveInvalidMediaQueries: true,
|
|
});
|
|
|
|
return mediaQueries;
|
|
}
|
|
|
|
module.exports = parseMediaQuery;
|