You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
I think this should be supported today. You just need to include the plugin in your .babelrc.
Although I don't see much value on that as you a just transferring 'grommet/components/CheckBox' to the babel file. Does my interpretation make sense? I may be missing something here...
I gave it a try and yes you're right this is supported as of today. No need for modification.
What's the value? Writing destructuring syntax without size penalty.
Cool good to know, thanks for clarifying that. I thought that with this plugin you would need to declare each component individually in the .babelrc file, but I was wrong.
It would be great if grommet-toolbox would allow using destructuring syntax.
instead of
without importing the whole grommet package into the build.
You might consider using https://github.com/lodash/babel-plugin-lodash for that purpose. Despite the name it allows 'cherry-picking' of modules.
e.g. nwb (https://github.com/insin/nwb) has the plugin configured in that generic way.
insin/nwb#141
https://github.com/insin/nwb/blob/master/docs/Configuration.md#cherrypick-string--arraystring
The text was updated successfully, but these errors were encountered: