
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
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 6,859 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.