Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use regex for topLevelImportPaths option #3654

Closed
wants to merge 1 commit into from

Conversation

rockwotj
Copy link

In the 2.x.x version of babel-plugin-styled-components, topLevelImportPath requires a regex, so we escape the literal here.

@rockwotj rockwotj closed this Dec 29, 2021
@rockwotj rockwotj reopened this Dec 29, 2021
@rockwotj rockwotj changed the base branch from main to legacy-v5 December 29, 2021 17:51
@agriffis
Copy link
Contributor

I don't think this is a good idea. I'd rather apply the anchors in the plugin than run around adding them to callers of the plugin.

If that PR gets merged, resulting in plugin 3.0, then the dep here could change to ^1.12.0 || ^3

If for some reason we go with this approach instead, then beware the anchors are backwards so it will never match. I don't know if this is somehow passing tests, but if so, it needs a new test.

@rockwotj rockwotj closed this Dec 29, 2021
@rockwotj
Copy link
Author

I'm closing this for now, I'm not sure how this macro is working at all, and I've run out of time to debug

@rockwotj rockwotj deleted the legacy-v5 branch December 29, 2021 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants