fixed-vh-polyfill
Version:
A lightweight JavaScript/TypeScript utility that stabilizes viewport height units (vh, svh, lvh) across browsers, preventing unintended reflows and scroll jitter.
81 lines (80 loc) • 2 kB
JSON
{
"name": "fixed-vh-polyfill",
"version": "1.0.2",
"description": "A lightweight JavaScript/TypeScript utility that stabilizes viewport height units (vh, svh, lvh) across browsers, preventing unintended reflows and scroll jitter.",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"files": [
"dist"
],
"scripts": {
"release": "standard-version",
"dev": "vite",
"build": "npm run clean && rollup -c",
"build:watch": "rollup -c --watch",
"clean": "rimraf dist",
"typecheck": "tsc --noEmit",
"test": "npm run typecheck",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/restarea92/fixed-vh-polyfill.git"
},
"homepage": "https://github.com/restarea92/fixed-vh-polyfill#readme",
"bugs": {
"url": "https://github.com/restarea92/fixed-vh-polyfill/issues"
},
"keywords": [
"viewport",
"vertical-height",
"100vh",
"100svh",
"100lvh",
"vh",
"lvh",
"svh",
"dvh",
"vmin",
"vmax",
"ios",
"safari",
"mobile",
"scroll",
"jitter",
"flicker",
"layout shift",
"in-app browser",
"polyfill",
"typescript",
"vh-check",
"react-vh",
"postcss-px-to-viewport",
"viewport-units-buggyfill"
],
"author": "Yohan Byun <restarea@me.com>",
"license": "MIT",
"type": "module",
"sideEffects": false,
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"rimraf": "^5.0.10",
"rollup": "^4.0.0",
"rollup-plugin-typescript2": "^0.34.1",
"standard-version": "^9.5.0",
"typescript": "^5.9.2",
"vite": "^7.1.4"
},
"engines": {
"node": ">=16.0.0"
}
}