chore: use react-grab to replace code-inspector-plugin (#33078)

This commit is contained in:
Stephen Zhou
2026-03-06 14:54:24 +08:00
committed by GitHub
parent e74cda6535
commit f05f0be55f
18 changed files with 250 additions and 427 deletions

View File

@ -0,0 +1,17 @@
import Script from 'next/script'
import { IS_DEV } from '@/config'
export function ReactGrabLoader() {
if (!IS_DEV)
return null
return (
<>
<Script
src="//unpkg.com/react-grab/dist/index.global.js"
crossOrigin="anonymous"
strategy="beforeInteractive"
/>
</>
)
}