UNPKG

react-lazily-component

Version:

为React设计的组件懒加载方法,支持jsx和tsx。

44 lines (43 loc) 1.25 kB
{ "name": "react-lazily-component", "version": "0.3.0", "description": "为React设计的组件懒加载方法,支持jsx和tsx。", "main": "./dist/react-lazily-component.min.js", "types": "./types/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/hai2007/react-lazily-component.git" }, "scripts": { "start": "npm install && npm run build", "build": "npm run rollup && npm run uglifyjs && nodejs --config ./nodejs.config.js", "rollup": "rollup --config rollup.config.js", "uglifyjs": "uglifyjs ./dist/react-lazily-component.js -m -o ./dist/react-lazily-component.min.js" }, "keywords": [ "react", "lazy", "lazily", "component", "jsx", "tsx", "ts", "js" ], "author": "你好2007", "license": "MIT", "bugs": { "url": "https://github.com/hai2007/react-lazily-component/issues" }, "homepage": "https://github.com/hai2007/react-lazily-component#readme", "devDependencies": { "@babel/core": "^7.12.3", "@babel/preset-env": "^7.12.1", "@babel/preset-react": "^7.14.5", "@rollup/plugin-babel": "^5.2.1", "@hai2007/nodejs": "^3.0.1", "react": "^17.0.2", "rollup": "^1.17.0", "uglify-js": "^3.10.2" } }