UNPKG

async-import-react-component

Version:

Support react components import asynchronously, with support for code splitting

155 lines (154 loc) 5.16 kB
{ "name": "async-import-react-component", "version": "1.0.1", "description": "Support react components import asynchronously, with support for code splitting", "main": "dist/asyncComponent.min.js", "typings": "dist/asyncComponent.d.ts", "scripts": { "start": "cross-env NODE_ENV=development webpack-dev-server --config ./scripts/config/webpack.dev.js", "build": "tsc -p tsconfig.bundle.json && cross-env ROLLUP_ENV=bundle rollup -c rollup.config.js", "report-coverage": "codecov --token='defbf37b-1c2c-46cc-881e-8c63dd6310ad'", "build-page": "cross-env NODE_ENV=production webpack --config ./scripts/config/webpack.prod.js", "test": "jest --coverage --config ./jest.config.js", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "lint": "npm run lint-eslint && npm run lint-stylelint", "lint-eslint": "eslint -c .eslintrc.js --ext .ts,.tsx,.js src", "lint-stylelint": "stylelint --config .stylelintrc.js src/**/*.{less,css,scss}" }, "files": [ "dist", "LICENSE", "package.json", "README.md" ], "browserslist": [ ">0.2%", "not dead", "ie >= 9", "not op_mini all" ], "husky": { "hooks": { "pre-commit": "lint-staged", "commit-msg": "commitlint --config .commitlintrc.js -E HUSKY_GIT_PARAMS" } }, "lint-staged": { "*.{ts,tsx,js}": [ "eslint --config .eslintrc.js" ], "*.{css,less,scss}": [ "stylelint --config .stylelintrc.js" ], "*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [ "prettier --write" ] }, "repository": { "type": "git", "url": "git+https://github.com/vortesnail/async-import-react-component.git" }, "keywords": [ "async-import-react-component", "async-import", "import-react-component", "async-component" ], "author": { "name": "vortesnail", "url": "https://github.com/vortesnail", "email": "1091331061@qq.com" }, "license": "MIT", "bugs": { "url": "https://github.com/vortesnail/async-import-react-component/issues" }, "homepage": "https://github.com/vortesnail/async-import-react-component#readme", "devDependencies": { "@babel/core": "^7.10.5", "@babel/plugin-transform-runtime": "^7.11.0", "@babel/preset-env": "^7.11.0", "@babel/preset-react": "^7.10.4", "@babel/preset-typescript": "^7.10.4", "@commitlint/cli": "^9.0.1", "@commitlint/config-conventional": "^9.0.1", "@rollup/plugin-babel": "^5.2.0", "@rollup/plugin-commonjs": "^15.0.0", "@rollup/plugin-node-resolve": "^9.0.0", "@testing-library/jest-dom": "^5.11.3", "@testing-library/react": "^10.4.8", "@types/jest": "^26.0.10", "@types/react": "^16.9.43", "@types/react-dom": "^16.9.8", "@types/react-syntax-highlighter": "^11.0.4", "@types/webpack-env": "^1.15.2", "@typescript-eslint/eslint-plugin": "^3.6.0", "@typescript-eslint/parser": "^3.6.0", "autoprefixer": "^9.8.5", "babel-loader": "^8.1.0", "clean-webpack-plugin": "^3.0.0", "codecov": "^3.7.2", "conventional-changelog-cli": "^2.0.34", "copy-webpack-plugin": "^6.0.3", "cross-env": "^7.0.2", "css-loader": "^3.6.0", "eslint": "^7.4.0", "eslint-config-airbnb": "^18.2.0", "eslint-config-prettier": "^6.11.0", "eslint-import-resolver-typescript": "^2.2.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-react": "^7.20.3", "eslint-plugin-react-hooks": "^4.0.6", "eslint-plugin-unicorn": "^20.1.0", "file-loader": "^6.0.0", "fork-ts-checker-webpack-plugin": "^5.0.13", "glob": "^7.1.6", "hard-source-webpack-plugin": "^0.13.1", "html-webpack-plugin": "^4.3.0", "husky": "^4.2.5", "jest": "^26.4.0", "less": "^3.12.2", "less-loader": "^6.2.0", "lint-staged": "^10.2.11", "mini-css-extract-plugin": "^0.9.0", "node-sass": "^4.14.1", "optimize-css-assets-webpack-plugin": "^5.0.3", "postcss-flexbugs-fixes": "^4.2.1", "postcss-loader": "^3.0.0", "postcss-normalize": "^9.0.0", "postcss-preset-env": "^6.7.0", "prettier": "^2.0.5", "purgecss-webpack-plugin": "^2.3.0", "rollup": "^2.26.3", "rollup-plugin-terser": "^7.0.0", "sass-loader": "^9.0.2", "style-loader": "^1.2.1", "stylelint": "^13.6.1", "stylelint-config-prettier": "^8.0.2", "stylelint-config-rational-order": "^0.1.2", "stylelint-config-standard": "^20.0.0", "stylelint-declaration-block-no-ignored-properties": "^2.3.0", "stylelint-order": "^4.1.0", "terser-webpack-plugin": "^4.0.0", "ts-jest": "^26.2.0", "typescript": "^3.9.7", "url-loader": "^4.1.0", "webpack": "^4.43.0", "webpack-bundle-analyzer": "^3.8.0", "webpack-cli": "^3.3.12", "webpack-dev-server": "^3.11.0", "webpack-merge": "^5.0.9", "webpackbar": "^4.0.0", "@babel/runtime-corejs3": "^7.11.0" }, "dependencies": { "react-loading": "^2.0.3", "react-syntax-highlighter": "^13.4.0" }, "peerDependencies": { "react": ">=16.0.0", "react-dom": ">=16.0.0" } }