-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
API:
/**
* @param {BemCell[]} decl
* @param {Object} opts
* @param {String} opts.exportType - can be one of 'cjs', 'json5', 'json', 'es6'
* @param {String} opts.format - v1, v2, enb
* @returns {String}
*/Description:
opts.format defines how to format normalized declaration:
v1- export formatted decl for v1 format with blocks fieldv2- export formatted decl for v2 format with decl fieldenb- export formatted decl for enb format with deps field
opts.exportType defines how to wrap stringified declaration:
cjs- in commonJS modulejson5jsones6-export default(not right now)
Returned string is representation of object with fields format and formatted decaration (name is defined by opts.format.
Usage:
Use at save with opts.exportType = 'cjs' by default.
Metadata
Metadata
Assignees
Labels
No labels