
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
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 8,176 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.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.