preact-lazy-route
Advanced tools
Comparing version 1.0.0-prerelease to 1.0.0
{ | ||
"name": "preact-lazy-route", | ||
"version": "1.0.0-prerelease", | ||
"version": "1.0.0", | ||
"description": "Lazy load preact route components", | ||
@@ -10,5 +10,6 @@ "main": "dist/index.js", | ||
"lint": "eslint . --ext .js,.jsx", | ||
"coverage": "nyc --reporter=lcov --reporter=text-lcov npm test", | ||
"coverage": "nyc --reporter lcov --reporter text --extension .jsx --require babel-register npm run test", | ||
"build": "rollup -c", | ||
"prepublish": "npm run build" | ||
"prepublish": "npm run build && npm run test", | ||
"release": "npm run -s build && git commit -am v$npm_package_version && git tag v$npm_package_version && git push && git push --tags && npm publish" | ||
}, | ||
@@ -40,3 +41,3 @@ "files": [ | ||
"istanbul": "^0.4.5", | ||
"jsdom": "^9.12.0", | ||
"jsdom": "^10.0.0", | ||
"mocha": "^3.2.0", | ||
@@ -43,0 +44,0 @@ "nyc": "^10.2.0", |
@@ -7,3 +7,3 @@ # preact-lazy-route | ||
`preact-lazy-route` is a component built for [preact-router](https://github.com/developit/preact-router). Using `preact-lazy-route` in combination with a module bundler such as [webpack](https://webpack.github.io/), allows you to implement code splitting on routes with the option do server side rendering in your preact application. | ||
`preact-lazy-route` is a component built for [preact-router](https://github.com/developit/preact-router). Using `preact-lazy-route` in combination with a module bundler such as [webpack](https://webpack.github.io/), allows you to implement code splitting on routes with the option to perform server side rendering in your preact application. | ||
@@ -36,3 +36,3 @@ ## Install | ||
You can provide a loading component to be displayed while your component is being fetched. | ||
You can provide an optional loading component to be displayed while your component is being fetched. | ||
@@ -47,3 +47,3 @@ ```js | ||
`preact-lazy-route` also allows for you to define a server side rendering path: | ||
`preact-lazy-route` also allows for you to define an optional server side rendering path: | ||
@@ -61,3 +61,3 @@ ```js | ||
You will need to set `useSsr` to `true` when rendering on the server. You can either use some environment variable in your node process or use webpack's [define plugin](https://webpack.js.org/plugins) to set a variable when bundling in webpack. | ||
You will need to set `useSsr` to `true` when rendering on the server by setting an environment variable in your node process or using webpack's [define plugin](https://webpack.js.org/plugins) for your webpack bundle. | ||
@@ -97,2 +97,2 @@ #### Node Environment | ||
[MIT](/license) | ||
[MIT](/license) |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12301
0
94