babel-plugin-multitron

1.0.1 • Public • Published

babel-plugin-multitron

Converts

const MyComponent = styled('div', ({ isActive, hasBorder }) => ({
  color: 'red',
  borderColor: 'yellow'
}));

To:

const MyComponent = styled('div', ({ isActive, hasBorder }) => ({
  color: 'red',
  borderColor: 'yellow'
}), ['isActive', 'hasBorder']);

This means that you can write Styletron components for React and then use them with Vue as well. Win!

Package Sidebar

Install

npm i babel-plugin-multitron

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.84 kB

Total Files

8

Last publish

Collaborators

  • erikhellman