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

[compiler][playground] create playground API in pipeline, and allow spaces in pass names #30988

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

mvitousek
Copy link
Contributor

@mvitousek mvitousek commented Sep 17, 2024

Stack from ghstack (oldest at bottom):

Summary:

  1. Minor refactor to provide a stable API for calling the compiler from the playground
  2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with & nbsp; in pass tabs

…paces in pass names

Summary:
1. Minor refactor to provide a stable API for calling the compiler from the playground
2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with   in pass tabs

[ghstack-poisoned]
Copy link

vercel bot commented Sep 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 5:45pm

mvitousek added a commit that referenced this pull request Sep 17, 2024
…paces in pass names

Summary:
1. Minor refactor to provide a stable API for calling the compiler from the playground
2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with   in pass tabs

ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb
Pull Request resolved: #30988
Comment on lines +558 to +567
export function* runPlayground(
func: NodePath<
t.FunctionDeclaration | t.ArrowFunctionExpression | t.FunctionExpression
>,
config: EnvironmentConfig,
fnType: ReactFunctionType,
): Generator<CompilerPipelineValue, CodegenFunction> {
const ast = yield* run(func, config, fnType, '_c', null, null, null);
return ast;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this different from run?

Copy link
Contributor

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepting to unblock but i don't get how runPlayground differs from run

@mvitousek mvitousek merged commit 2385128 into gh/mvitousek/38/base Sep 17, 2024
19 checks passed
mvitousek added a commit that referenced this pull request Sep 17, 2024
…paces in pass names

Summary:
1. Minor refactor to provide a stable API for calling the compiler from the playground
2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with &nbsp; in pass tabs

ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb
Pull Request resolved: #30988
@mvitousek mvitousek deleted the gh/mvitousek/38/head branch September 17, 2024 18:06
github-actions bot pushed a commit that referenced this pull request Sep 17, 2024
…paces in pass names

Summary:
1. Minor refactor to provide a stable API for calling the compiler from the playground
2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with &nbsp; in pass tabs

ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb
Pull Request resolved: #30988

DiffTrain build for [7b56a54](7b56a54)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants