Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: Switch tovite-prerender-plugin#153

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rschristian merged 4 commits intomainfromrefactor/switch-to-vite-prerender-plugin
Jan 10, 2025

Conversation

@rschristian
Copy link
Member

Moved it into the Preact org just the other day (preactjs/vite-prerender-plugin) as I wanted to keep an agnostic package for users to install, but syncing back & forth with this repo was a bit rough. It also is complex enough to warrant a bigger test suite, something which probably shouldn't be added here.

So, this PR switches over to consume it, rather than have an internal copy. Should be easier to maintain in the future hopefully.

@rschristianrschristianforce-pushed therefactor/switch-to-vite-prerender-plugin branch from2f7a44b to3e0bc9aCompareJanuary 5, 2025 04:11
@rschristianrschristian marked this pull request as ready for reviewJanuary 8, 2025 08:51
package.json Outdated
"dev:preview":"vite preview demo",
"build":"rimraf dist && tsc && tsc -p tsconfig.cjs.json && node tools/postbuild.mjs",
"test":"node --testtest",
"test":"rimraf demo/node_modules &&node --test",
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

We create a temp dir innode_modules (node_modules/<@preact/preset-vite|vite-prerender-plugin>/headless-prerender/...) to allow users to use external, non-bundlednode_modules whilst prerendering, but that screws with module resolution a tad. The demo will try to pull from that, but given it's just a holding place rather than an actual, installed module, that won't work.

Side effect of being monorepo-ish here.

Comment on lines -21 to -22

// Head API
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

All of this can be tested upstream

@rschristianrschristian merged commit66b9069 intomainJan 10, 2025
1 check passed
@marvinhagemeistermarvinhagemeister mentioned this pull requestJan 19, 2025
@rschristianrschristian deleted the refactor/switch-to-vite-prerender-plugin branchJanuary 20, 2025 01:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JoviDeCroockJoviDeCroockJoviDeCroock approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@rschristian@JoviDeCroock

[8]ページ先頭

©2009-2025 Movatter.jp