Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

next-preact

Package Overview
Dependencies
Maintainers
18
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-preact - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

index.js
module.exports = function withPreact(nextConfig = {}) {
const dev = process.env.NODE_ENV !== 'production'
const moduleAlias = require('module-alias')
// For the development version, we'll use React.
// Because, it support react hot loading and so on.
if (!dev) {
moduleAlias.addAlias('react', 'preact-compat')
moduleAlias.addAlias('react-dom', 'preact-compat')
}
return Object.assign({}, nextConfig, {

@@ -3,0 +13,0 @@ webpack(config, options) {

5

package.json
{
"name": "next-preact",
"version": "0.0.2",
"version": "0.0.3",
"main": "index.js",

@@ -10,3 +10,6 @@ "license": "MIT",

"preact-compat": "^3.17.0"
},
"dependencies": {
"module-alias": "^2.0.3"
}
}
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