-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: macro can customize importModuleName
If `styled` should come from a wrapper instead of directly from styled-components, this enables users of the macro to customize the import by configuring in `packages.json`: "babelMacros": { "styledComponents": { "importModuleName": "my-styled-components" } } Previously similar functionality landed in babel-plugin-styled-components so users of the plugin could use a wrapper at that level, but it wasn't available to users of the macro. This builds on that work by passing the customized module name through to the plugin. Consequently we also update the dependency to ensure the plugin supports `topLevelImportPaths` See styled-components/babel-plugin-styled-components@325167b Fixes styled-components/xstyled#44
- Loading branch information
Showing
5 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters