UNPKG

babel-preset-test-bundled-dependencies

Version:

Allow custom config for create-react-app without ejecting

10 lines (9 loc) 326 B
module.exports = function cleanIdentifier(node, item, list) { // remove useless universal selector if (this.selector !== null && node.name === '*') { // remove when universal selector isn't last if (item.next && item.next.data.type !== 'Combinator') { list.remove(item); } } };