@stylable/core
Version:
CSS for Components
19 lines • 577 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hooks = void 0;
const feature_1 = require("./feature");
// HOOKS
exports.hooks = (0, feature_1.createFeature)({
transformAtRuleNode({ atRule, context }) {
if (atRule.name !== 'media') {
return;
}
atRule.params = context.evaluator.evaluateValue(context, {
value: atRule.params,
meta: context.meta,
node: atRule,
initialNode: atRule,
}).outputValue;
},
});
//# sourceMappingURL=css-media.js.map