New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@preconstruct/next

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preconstruct/next

A Next.js plugin to work with preconstruct repos

4.0.0
latest
Source
npm
Version published
Maintainers
2
Created
Source

@preconstruct/next

A Next.js plugin to make Next sites work with preconstruct dev.

Install

yarn add @preconstruct/next

Usage

Add the plugin to your next.config.js file.

const withPreconstruct = require("@preconstruct/next");

module.exports = withPreconstruct({ ...yourOwnConfig });

Note that in Next.js 12, Next will not read a Babel config from outside of the directory that the Next.js site is in. If you need it to to read your babel config, you will need to do something like this:

// site/babel.config.js
module.exports = require("../babel.config");

FAQs

Package last updated on 29 Mar 2022

Did you know?

Socket

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.

Install

Related posts