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

Support .astro file loading on graphql-tag-pluck #5780

Open
XiNiHa opened this issue Dec 16, 2023 · 1 comment
Open

Support .astro file loading on graphql-tag-pluck #5780

XiNiHa opened this issue Dec 16, 2023 · 1 comment

Comments

@XiNiHa
Copy link
Contributor

XiNiHa commented Dec 16, 2023

Is your feature request related to a problem? Please describe.

Currently, graphql-tag-pluck (and packages depending on it) doesn't support loading documents from .astro files.

Describe the solution you'd like

Add .astro support on graphql-tag-pluck

Describe alternatives you've considered

Let Astro users define documents in .ts files and import them, which is inconvenient.

Additional context

@XiNiHa
Copy link
Contributor Author

XiNiHa commented Dec 16, 2023

The problem I found while implementing the fix is that the @astrojs/compiler doesn't provide any synchronous interfaces to transform the file (since it runs with WASM.) Is it okay to implement the feature async only?

Just found that the Astro compiler provides a synchronous version.

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