UNPKG

@rosskevin/ifvisible

Version:

Cross-browser, lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)

6 lines (4 loc) 128 B
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { globals: true, environment: 'jsdom' }, })