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

[legacy-framework] Fix blitz generate in javascript projects #2859

Merged
merged 5 commits into from
Oct 21, 2021

Conversation

beerose
Copy link
Contributor

@beerose beerose commented Oct 19, 2021

Closes: blitz-js/legacy-framework#462

What are the changes and their implications?

It turns out that babel transform was relying on a local babel config, and that caused issues. Added configFile: flase to transform options. Also prettier didn't run for generated code in JS projects because of an early return. This PR fixes that as well.


I also tested the JS project - blitz start/dev/build as well as generating new models, and it seems to work fine. Hence this PR should close the blitz-js/legacy-framework#462 issue.

Bug Checklist

  • Integration test added (see test docs if needed)

Feature Checklist

@beerose beerose marked this pull request as ready for review October 20, 2021 11:35
@beerose beerose requested a review from flybayer as a code owner October 20, 2021 11:35
@flybayer flybayer merged commit 797618e into canary Oct 21, 2021
@flybayer flybayer deleted the fix-generate-js-projects branch October 21, 2021 14:43
@itsdillon itsdillon changed the title Fix blitz generate in javascript projects [legacy-framework] Fix blitz generate in javascript projects Jul 7, 2022
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.

Plain JS blitz app fails to compile
3 participants