このコミットが含まれているのは:
@@ -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,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする