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

Avoid exposing configs that are not configurable #682

Merged
merged 17 commits into from
May 3, 2024

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Apr 28, 2024

supersedes #679

Implementation-wise, there are many hacks. We should improve it later.

Copy link

vercel bot commented Apr 28, 2024

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

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview May 2, 2024 2:37pm

Copy link

codesandbox-ci bot commented Apr 28, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@himself65 himself65 left a comment

Choose a reason for hiding this comment

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

image

@dai-shi dai-shi marked this pull request as ready for review May 2, 2024 15:06
@dai-shi dai-shi merged commit ae0b1de into main May 3, 2024
28 checks passed
@dai-shi dai-shi deleted the make-entries-main-non-configurable branch May 3, 2024 06:41
dai-shi added a commit that referenced this pull request May 6, 2024
Solve #700

The bug was introduced in #682, the
reason is that the logic of
https://github.com/dai-shi/waku/pull/682/files#diff-6de2cc9d9f6423e3f4faa0cb1a6200112f1bc057af0db1a9362fe6117c51d18aR79-R82
was adjusted.

I think the logic now assmues the entry file is endsWith .jsx while
while the dynamic import in serve-vercel.js is endsWith .js

![CleanShot 2024-05-05 at 17 02
38@2x](https://github.com/dai-shi/waku/assets/24316656/5c5d0b14-70f9-4565-84e6-9328b08ac946)

![CleanShot 2024-05-05 at 17 03
30@2x](https://github.com/dai-shi/waku/assets/24316656/27a7240b-6e1c-4420-9ba8-8b187d72282c)

I am not so sure it is a correct way to remove .js extension, but I
added the dry run testing, maybe it can help.

---------

Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
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.

2 participants