Skip to content

Conversation

@JakeGinnivan
Copy link

My project has a different config so the styled-system import from the root doesn't work, so I have to edit each file to fix the import after I add the component.

Also was thinking styled-system-import-prefix, which could just be ./app/ or something.

@vercel
Copy link

vercel bot commented Sep 17, 2025

@JakeGinnivan is attempting to deploy a commit to the Personal Team on Vercel.

A member of the Team first needs to authorize it.

@JakeGinnivan JakeGinnivan changed the title Allow customisation of the styled system import [Next] Allow customisation of the styled system import Sep 17, 2025
@cschroeter
Copy link
Owner

@JakeGinnivan That’s actually a pretty solid idea. I’m just not entirely sure if it’s the right approach.As I can see folks want to customize the location of the tsconfig, while the other case is about the panda config path.

Maybe a hook-based approach would be more flexible, similar to how you can tweak the Vite build config. I will keep it open though as it is not a bad approach

@Guria
Copy link

Guria commented Sep 18, 2025

In my setup I rely on "native" package.json exports and imports configuration. It forces to use # at beginning.

@JakeGinnivan
Copy link
Author

@cschroeter yeah, it's a pretty naive solution, but thought it'd throw something up. Maybe could introduce as unstable_imports, with a note implementation may change so we can solve the issue, but then come up with a better solution or improve it.

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.

3 participants