We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
opts.format
format
v1
v2
enb
opts.exportType defines how to wrap stringified declaration:
opts.exportType
cjs
json5
json
es6
export default
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.
save
opts.exportType = 'cjs'
The text was updated successfully, but these errors were encountered:
no es6 right now
Sorry, something went wrong.
skad0
No branches or pull requests
API:
Description:
opts.format
defines how toformat
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 fieldopts.exportType
defines how to wrap stringified declaration:cjs
- in commonJS modulejson5
json
es6
-export default
(not right now)Returned string is representation of object with fields
format
and formatted decaration (name is defined byopts.format
.Usage:
Use at
save
withopts.exportType = 'cjs'
by default.The text was updated successfully, but these errors were encountered: