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 js #270

Merged
merged 7 commits into from
Sep 15, 2021
Merged

support js #270

merged 7 commits into from
Sep 15, 2021

Conversation

ryanatkn
Copy link
Owner

@ryanatkn ryanatkn commented Sep 13, 2021

Gro was designed for TypeScript projects from the start, and I never had a usecase for .js files. Until now -- we now have a .js file for sharing constants between svelte.config.js and regular code in felt-server. And it seems super silly to not have .js file import support. So this PR adds that.

As mentioned in the added comments, this is a flawed implementation because Gro wants to resolve build ids to source files up front, and it has no way to self-correct for changes. (e.g. changing from a .ts file to a .js file while watching) It's probably about time to move to a Rollup-compatible plugin system for e.g. resolving import specifiers, but that will require some deeper changes to how Gro works.

  • get something working
  • figure out and implement the right way

@ryanatkn ryanatkn marked this pull request as ready for review September 15, 2021 12:41
@ryanatkn ryanatkn merged commit b278180 into main Sep 15, 2021
@ryanatkn ryanatkn deleted the support-js branch September 15, 2021 12:54
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.

1 participant