-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature
Currently the way to add imports is using mod.imports.$add, which requires an ImportItemInput which requires an imported
parameter, whereas it does not allow for generating such expression like
import 'my-global-styles.css'
On giving null or undefined as imported there is an error thrown
In my case it's particularly important for using AST to export custom css-in-jsx styles outside of file
I could take a look at it when pointed what would be the best way to modify it, and whether it's magicast or recast
Additional information
- Would you be willing to help implement this feature?
fatihsolhan, aheissenberger and eiiot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request