New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

preact-lazy-route

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

preact-lazy-route - npm Package Compare versions

Comparing version 1.0.0-prerelease to 1.0.0

9

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc