mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-18 15:12:26 +00:00
`resolveComponent` is a synchronous function to resolve the react component from the imported module and props. Unlike wrappers on the import function itself, it works on both the client and server side.
66 lines
2.0 KiB
JSON
66 lines
2.0 KiB
JSON
{
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"bundlesize": [
|
|
{
|
|
"path": "./packages/component/dist/loadable.min.js",
|
|
"maxSize": "3.5 kB"
|
|
},
|
|
{
|
|
"path": "./packages/component/dist/loadable.esm.js",
|
|
"maxSize": "4.5 kB"
|
|
}
|
|
],
|
|
"scripts": {
|
|
"build": "lerna run build",
|
|
"ci": "yarn build && yarn lint && yarn test --ci && bundlesize",
|
|
"dev": "WATCH_MODE=true lerna run build --parallel -- --watch",
|
|
"format": "prettier --write \"**/*.{js,json,md}\"",
|
|
"lint": "eslint .",
|
|
"release": "lerna publish --conventional-commits && conventional-github-releaser --preset angular",
|
|
"release-to-git": "./scripts/git-release.sh",
|
|
"test": "jest"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.7.7",
|
|
"@babel/core": "^7.7.7",
|
|
"@babel/node": "^7.7.7",
|
|
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
"@babel/plugin-transform-runtime": "^7.7.6",
|
|
"@babel/preset-env": "^7.7.7",
|
|
"@babel/preset-react": "^7.7.4",
|
|
"@hedgepigdaniel/npm-publish-git": "^0.1.0",
|
|
"@testing-library/jest-dom": "^4.2.4",
|
|
"@testing-library/react": "^9.4.0",
|
|
"babel-core": "^7.0.0-bridge.0",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^24.9.0",
|
|
"babel-plugin-annotate-pure-calls": "^0.4.0",
|
|
"bundlesize": "^0.18.0",
|
|
"conventional-github-releaser": "^3.1.2",
|
|
"cross-env": "^6.0.3",
|
|
"eslint": "^6.8.0",
|
|
"eslint-config-airbnb": "^18.0.1",
|
|
"eslint-config-prettier": "^6.9.0",
|
|
"eslint-plugin-import": "^2.19.1",
|
|
"eslint-plugin-jsx-a11y": "^6.2.1",
|
|
"eslint-plugin-react": "^7.17.0",
|
|
"jest": "^24.9.0",
|
|
"lerna": "^3.20.2",
|
|
"prettier": "^1.19.1",
|
|
"react": "^16.12.0",
|
|
"react-dom": "^16.12.0",
|
|
"regenerator-runtime": "^0.13.3",
|
|
"rollup": "^1.29.0",
|
|
"rollup-plugin-babel": "^4.3.2",
|
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
"rollup-plugin-node-resolve": "^5.0.1",
|
|
"rollup-plugin-replace": "^2.2.0",
|
|
"rollup-plugin-size-snapshot": "^0.10.0",
|
|
"rollup-plugin-terser": "^5.1.3",
|
|
"shx": "^0.3.2"
|
|
}
|
|
}
|