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

chore(esm): Fix project-config dual packaging #10901

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Jul 2, 2024

This PR changes the build and exports for @redwoodjs/project-config.

Before
❌ trying to import project-config with moduleResolution: next

Now
✅ Can import

This also brings it inline with how we're doing dual packages elsewhere, where we output dist/*.js for ESM and dist/cjs/*.js for CJS.

@dac09 dac09 added this to the chore milestone Jul 2, 2024
@dac09 dac09 added the release:chore This PR is a chore (means nothing for users) label Jul 2, 2024
@dac09 dac09 marked this pull request as draft July 2, 2024 08:10
@dac09 dac09 marked this pull request as ready for review July 2, 2024 08:49
@dac09 dac09 requested a review from Josh-Walker-GM July 2, 2024 09:24
@dac09
Copy link
Collaborator Author

dac09 commented Jul 2, 2024

@Josh-Walker-GM mind doing a quick scan through?

We'll need this when we try to set moduleResolution: "nodenext" on rwjs/vite!

@dac09 dac09 merged commit 88b5c4a into redwoodjs:main Jul 3, 2024
51 checks passed
@dac09 dac09 deleted the fix/project-config-dualpkg-output branch July 3, 2024 10:09
@dac09
Copy link
Collaborator Author

dac09 commented Jul 3, 2024

Whooops, I misread half of Josh's message and merged it. We can revert if there are any issues here!

dac09 added a commit to dac09/redwood that referenced this pull request Jul 4, 2024
…rt-serverStore

* 'main' of github.com:redwoodjs/redwood:
  chore(comment): Remove comment that's wrong (redwoodjs#10912)
  chore(esm): Fix project-config dual packaging (redwoodjs#10901)
  RSC: dbAuth in kitchen-sink (redwoodjs#10907)
  RSC: No need to pass location to Router anymore (redwoodjs#10905)
  RSC: Make `rw g page` work for RSC projects (redwoodjs#10903)
  Updates document template to use exports field for htmlTags (redwoodjs#10902)
@Josh-Walker-GM Josh-Walker-GM modified the milestones: chore, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants