loadable-components/package.json
kamikazePT 42fbdd0d55
fix: Fixed lazy usage with Suspense and Error Boundary together (#521)
* Fixed lazy usage with Suspense and Error Boundary together

* Typo

* v1.0.0-fork

* accidental push

* Condition was reversed

* Fixed Suspense with full dynamic import after fulfilled promise

* Added unit test

* cached promise

* added tests for multiple elements of same async component

* renamed unit test

* added retryable error boundary

* reworked tests

* Retrying working for lazy and loadable

* linter should run on pre-commit... :/

* upped max bundle size

* fix: Fixed suspense tests and fixed un-throwable pending promises when using suspense

* refactor: removed unnecessary wait in test

* test: fixed test regarding nested suspense

* test: fixed fucked up assertion

* fix: fixed weird corner case on error boundary not being reached

* feat: removed proxy

* fix: removed unnecessary code

* fix: fixed unnecesssary stack of callbacks
2020-09-05 10:09:22 +10:00

67 lines
2.1 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-proposal-function-bind": "^7.8.3",
"@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"
}
}