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

[Build] Scaffold system [Vue] #19

Closed
6 of 7 tasks
yyyyaaa opened this issue May 25, 2023 · 0 comments
Closed
6 of 7 tasks

[Build] Scaffold system [Vue] #19

yyyyaaa opened this issue May 25, 2023 · 0 comments
Assignees

Comments

@yyyyaaa
Copy link
Contributor

yyyyaaa commented May 25, 2023

Due to the limitations of mitosis and the features we can normally use with react, we need an escape hatch for advanced component logic such as managing focus, refs, keyboard controls, a11y...etc.

A solution do that we use "scaffolds" in our build system, which is just really string replace/codemod through mitosis cli plugins.

So, let's say we have <ScaffoldComplex /> components that do all sort of things that mitosis aren't capable of compiling, we then use within .lite.tsx components

export default function MyComp (props) {
  return <ScaffoldComplex>{props.children}</ScaffoldComplex>;
}

Our scaffold system should understand that ScaffoldComplex is a scaffold component and should add imports and replace the name scaffold with the actual component name in packages/<platform>/src/scaffolds/complex

@yyyyaaa yyyyaaa self-assigned this May 25, 2023
@yyyyaaa yyyyaaa changed the title [Build] Scaffold system [Build] Scaffold system [Vue] May 25, 2023
@yyyyaaa yyyyaaa closed this as completed Mar 3, 2024
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

No branches or pull requests

1 participant