fix(ssr): polyfill IntersectionObserver for Node.js SSR runtime
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
if (typeof globalThis.IntersectionObserver === 'undefined') {
|
||||||
|
globalThis.IntersectionObserver = class {
|
||||||
|
constructor() {}
|
||||||
|
observe() {}
|
||||||
|
unobserve() {}
|
||||||
|
disconnect() {}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
import '../css/app.css';
|
import '../css/app.css';
|
||||||
import { createInertiaApp } from '@inertiajs/vue3'
|
import { createInertiaApp } from '@inertiajs/vue3'
|
||||||
import createServer from '@inertiajs/vue3/server'
|
import createServer from '@inertiajs/vue3/server'
|
||||||
|
|||||||
Reference in New Issue
Block a user