@lwc/style-compiler
Version:
Transform style sheet to be consumed by the LWC engine
13 lines • 429 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const CUSTOM_PROPERTY_IDENTIFIER = '--';
function validate(root) {
root.walkDecls(decl => {
const { prop } = decl;
if (prop.startsWith(CUSTOM_PROPERTY_IDENTIFIER)) {
throw decl.error(`Invalid definition of custom property "${prop}".`);
}
});
}
exports.default = validate;
//# sourceMappingURL=validate.js.map