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

Move rewritten app to ./tmp #1985

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Move rewritten app to ./tmp #1985

merged 2 commits into from
Jun 13, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jun 13, 2024

We're very close to eliminating the rewritten app, but vite's extremely loose inNodeModules behavior is breaking features that we need to use to actually get there. So we're moving the rewritten-app from ./node_modules/.embroider to ./tmp, since this path stops confusing vite.

The immediate motivation here was to get inline script tags working in index.html. If your index.html has the string node_modules anywhere in its path that vite feature breaks.

We're very close to eliminating the rewritten app, but vite's extremely loose `inNodeModules` behavior is breaking features that we need to use to actually get there. So we're moving the rewritten-app from `./node_modules/.embroider` to `./tmp`, since this path stops confusing vite.

The immediate motivation here was to get inline script tags working in index.html. If your index.html has the string `node_modules` anywhere in its path that vite feature breaks.
@ef4 ef4 added the internal label Jun 13, 2024
because it handles the weirdness of dummy apps
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

:shipit:

@mansona mansona merged commit 1486226 into main Jun 13, 2024
174 checks passed
@mansona mansona deleted the move-rewritten-app branch June 13, 2024 13:53
@ef4
Copy link
Contributor Author

ef4 commented Jun 13, 2024

Filed vite bug for the issue this PR works around: vitejs/vite#17467

@github-actions github-actions bot mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants