next-preact
Advanced tools
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) { |
{ | ||
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1704
25
3
3
+ Addedmodule-alias@^2.0.3
+ Addedmodule-alias@2.2.3(transitive)