bem / bem-sdk

BEM SDK packages
https://en.bem.info/toolbox/sdk/
88 stars 25 forks source link

naming.entity.parse и React preset #395

Open sergcen opened 4 years ago

sergcen commented 4 years ago

Не парсит если есть layer

const originNaming = require('@bem/sdk.naming.presets/react');
const parse = require('@bem/sdk.naming.entity.parse')(originNaming);

// Enter a BEM entity name to parse.
parse('MyBlock/MyBlock_myModifier@layer'); // undefined

https://runkit.com/sergcen/5e89e5e41addc5001b44a4fa