このコミットが含まれているのは:
2026-10-12 02:37:56 +09:00
コミット 88e691165a
8個のファイルの変更、449行の追加、191行の削除
+14 -2
ファイルの表示
@@ -3,10 +3,22 @@ import react from '@vitejs/plugin-react'
import path from 'path'
import { defineConfig } from 'vite'
const mdxPlugin = mdx ({ providerImportSource: '@/mdx-components' })
const originalTransform = mdxPlugin.transform
if (typeof originalTransform === 'function')
{
mdxPlugin.transform =
function (code, id)
{
return (/[?&](raw|url)(?:&|$)/.test (id)
? null
: originalTransform.call (this, code, id))
}
}
// https://vite.dev/config/
export default defineConfig ({
plugins: [mdx ({ providerImportSource: '@/mdx-components' }), react ()],
plugins: [mdxPlugin, react ()],
resolve: { alias: { '@': path.resolve (__dirname, './src') } },
server: { host: true,
port: 5173,