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

feat: default esm SSR build, simplified externalization #501

Merged
merged 2 commits into from Jun 20, 2022

Conversation

hiro-lapis
Copy link
Contributor

resolve #466

vitejs/vite@f8c92d1 の反映です。

*本家の変更のpackagesの対応はしていません。

@netlify
Copy link

netlify bot commented Jun 18, 2022

Deploy Preview for vitejs-docs-ja ready!

Name Link
🔨 Latest commit 0ea6028
🔍 Latest deploy log https://app.netlify.com/sites/vitejs-docs-ja/deploys/62aeac7bcd4df10008f4269d
😎 Deploy Preview https://deploy-preview-501--vitejs-docs-ja.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

viteのバージョンが本家と異なるためなのかは分かりませんが、defineConfig内のオプション項目にssrがなくエラー表示されています。

↓このあたりについて本家でやりとりされている箇所
vitejs/vite#8348 (comment)

反映する必要があるのか判断に迷ったのですが、
本家の/docsは翻訳リポジトリのルートディレクトリなので対応範囲内なので、対応しました。

一応、yarn docs実行してのビルドエラーはなく、ページ表示も問題ないことは確認しました。

Copy link
Collaborator

@jay-es jay-es left a comment

Choose a reason for hiding this comment

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

1点修正お願いします:pray:
vite.config.ts についてはビルドエラーになっていないとのことなのでそのままでOKです(そのうちバージョンが上がれば直ると思うので)

config/ssr-options.md Outdated Show resolved Hide resolved
Co-authored-by: Jun Shindo <46585162+jay-es@users.noreply.github.com>
@hiro-lapis
Copy link
Contributor Author

@jay-es
ありがとうございます、修正1箇所のみだったのでsuggestを受け入れて修正させてもらいました。

Copy link
Collaborator

@jay-es jay-es left a comment

Choose a reason for hiding this comment

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

ありがとうございます!:pray:

@jay-es jay-es merged commit 2cca100 into vitejs:main Jun 20, 2022
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.

feat: default esm SSR build, simplified externalization
2 participants