@preconstruct/next

4.0.0 • Public • Published

@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");

Readme

Keywords

none

Package Sidebar

Install

npm i @preconstruct/next

Weekly Downloads

6,822

Version

4.0.0

License

MIT

Unpacked Size

7.01 kB

Total Files

5

Last publish

Collaborators

  • emmatown
  • preconstruct-release-bot