
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
next-superjson
Advanced tools
Automatically transform your Next.js Pages to use SuperJSON, without losing swc support
Install the library with your package manager of choice, e.g.:
npm install next-superjson
Since this is a companion to SuperJSON, make sure it's also installed:
npm install superjson
Add the plugin to your next.config.js
.
If you don't have one, create it.
const { withSuperjson } = require('next-superjson')
module.exports = withSuperjson()({})
That's it! Now you're free to use all values and type supported by SuperJSON in your Next.js Components.
New Nextjs 12 uses swc
to compile user code by default, adding a custom .babelrc
file will make Nextjs compile everything using Babel instead (much slower).
This plugin will inject the superjson babel plugin only on files under the pages
directory so you can keep using swc for all the other files.
FAQs
Automatically transform your Next.js Pages to use SuperJSON, without losing swc support
The npm package next-superjson receives a total of 5,779 weekly downloads. As such, next-superjson popularity was classified as popular.
We found that next-superjson demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Company News
Socket’s acquisition of Coana brings best-in-class reachability analysis to application security teams globally, cementing Socket’s position as the leader in software supply chain security.