UNPKG

react-lazyable

Version:

use react suspense and lazy api to async loading component, support antd component

53 lines 1.74 kB
{ "name": "react-lazyable", "version": "1.0.6", "description": "use react suspense and lazy api to async loading component, support antd component", "scripts": { "type-check": "tsc --noEmit", "type-check:watch": "npm run type-check -- --watch", "build:types": "tsc --declaration --emitDeclarationOnly", "build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" ", "build:ts": "rimraf -rf lib && tsc --outDir lib --declaration --declarationDir lib ", "build": "rimraf -rf lib && npm run build:ts", "start": "yarn run build" }, "dependencies": { "hoist-non-react-statics": "^3.3.0", "react": "^16.8.4" }, "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.3.4", "@babel/plugin-proposal-class-properties": "^7.3.4", "@babel/plugin-proposal-object-rest-spread": "^7.3.4", "@babel/preset-env": "^7.3.4", "@babel/preset-react": "^7.0.0", "@babel/preset-typescript": "^7.3.3", "@types/hoist-non-react-statics": "^3.3.0", "@types/node": "^11.9.5", "@types/react": "^16.8.5", "babel-loader": "^8.0.5", "babel-plugin-styled-components": "^1.10.0", "cross-env": "^5.2.0", "fork-ts-checker-webpack-plugin": "^0.5.2", "prettier": "^1.16.4", "rimraf": "^2.6.3", "typescript": "3.2.4", "webpack": "^4.29.5", "webpack-bundle-analyzer": "^3.0.4", "webpack-cli": "^3.2.3" }, "files": [ "lib/" ], "main": "./lib/index.js", "typings": "./lib/index.d.ts", "license": "MIT", "lint-staged": { "*.ts": [ "prettier --write", "tslint -c tslint.json -p tsconfig.json --fix -e \"**/test/expect/**\"", "git add" ] } }