このコミットが含まれているのは:
2026-10-18 18:54:59 +09:00
コミット 912b941f90
22個のファイルの変更、391行の追加、133行の削除
+7 -1
ファイルの表示
@@ -22,8 +22,14 @@ if (typeof originalTransform === 'function')
}
export default defineConfig ({
plugins: [helpAssets (), mdxPlugin, react ()],
plugins: [{ name: 'request-render-context', enforce: 'pre',
resolveId (id, _importer, options) {
const contextPath = path.resolve (__dirname, './src/lib/renderContext')
if (options.ssr && (id === contextPath || id === `${contextPath}.ts`))
return path.resolve (__dirname, './src/lib/renderContext.server.ts')
} }, helpAssets (), mdxPlugin, react ()],
resolve: { alias: { '@': path.resolve (__dirname, './src') } },
ssr: { noExternal: ['react-helmet-async'] },
server: { host: true,
port: 5173,
strictPort: true,