UNPKG

@times-components/lazy-load

Version:

Use IntersectionObserver to lazy load resources

69 lines (68 loc) 2.18 kB
{ "name": "@times-components/lazy-load", "version": "0.21.7", "description": "Use IntersectionObserver to lazy load resources", "main": "dist/lazy-load", "dev": "src/lazy-load", "scripts": { "depcheck": "depcheck --ignores='@babel/*,babel-*,depcheck,eslint,jest,prettier,webpack*' --ignore-bin-package=false --skip-missing", "fmt": "eslint . --fix && prettier --write '**/*.*'", "prettier:diff": "prettier --list-different '**/*.*'", "lint": "eslint . && yarn prettier:diff && yarn depcheck", "test:web": "jest --config='./__tests__/jest.config.js'", "test:web:updatesnapshot": "yarn test:web -u", "prepublishOnly": "yarn transpile && yarn bundle", "watch": "watch 'yarn bundle' ./src --ignoreDotFiles --ignoreUnreadable", "cleanup-dist": "rm -rf dist", "transpile": "yarn cleanup-dist && babel src -d dist", "bundle": "NODE_ENV=production webpack -p" }, "repository": { "type": "git", "url": "git+https://github.com/newsuk/times-components.git" }, "keywords": [ "react", "web", "lazy-load", "component" ], "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/newsuk/times-components/issues" }, "homepage": "https://github.com/newsuk/times-components#readme", "devDependencies": { "@babel/core": "7.4.4", "@times-components/eslint-config-thetimes": "0.8.18", "@times-components/jest-configurator-web": "0.8.2", "@times-components/jest-serializer": "3.15.0", "@times-components/storybook": "4.13.2", "@times-components/test-utils": "2.4.2", "@times-components/webpack-configurator": "2.1.1", "babel-jest": "24.8.0", "enzyme": "3.9.0", "eslint": "5.9.0", "jest": "24.8.0", "prettier": "1.14.3", "react": "16.9.0", "react-dom": "16.9.0", "styled-components": "4.3.2", "webpack": "4.30.0" }, "dependencies": { "prop-types": "15.7.2" }, "resolutions": { "react": "16.9.0", "react-dom": "16.9.0" }, "peerDependencies": { "react": ">=16.9", "react-dom": ">=16.9" }, "publishConfig": { "access": "public" }, "gitHead": "07b292c2f7d20953935b846634c55df093705568" }