compiled icon indicating copy to clipboard operation
compiled copied to clipboard

Can't use more than one import in template literal as object property key

Open at-nathan opened this issue 2 years ago • 0 comments

Describe the bug

import { hiddenClass } from './hidden';
import { itemClass } from './item';

// Output selector becomes .hidden, itemClass
const Comp = styled.div({
  [`${hiddenClass}, ${itemClass}`] { ... },
});

at-nathan avatar Sep 14 '22 05:09 at-nathan