@onlook/nextjs

2.1.1 • Public • Published

Onlook nextjs preprocessor

Usage

  1. Install preprocessor library
npm i --save-dev @onlook/nextjs
  1. Update next.config.mjs or next.config.js
import path from "path";

const nextConfig = {
  reactStrictMode: true,
  experimental: {
    swcPlugins: [["@onlook/nextjs", { root: path.resolve(".") }]],
  },
}

export default nextConfig

For more, see: https://nextjs.org/docs/pages/api-reference/next-config-js

Nextjs 13

Unfortunately, Next.js version v13.2.4 ~ v13.3.1 cannot execute SWC Wasm plugins, due to a bug of next-swc. See more here.

Please upgrade to next 13.4.3 or above.

npm i next@13.4.3

Backwards compatibility note

The Next plugins ecosystem is still experimental, so SWC ships backwards incompatible version.

We will keep updating the package to the latest version in hope of a stable release in the future.

https://swc.rs/docs/plugin/selecting-swc-core

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.1154latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.1154
2.1.0114
2.0.60
2.0.50
2.0.40
2.0.30
2.0.20
2.0.10
2.0.00
1.2.00
1.1.30
1.1.20
1.1.10
1.1.00
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @onlook/nextjs

Homepage

onlook.dev

Weekly Downloads

268

Version

2.1.1

License

none

Unpacked Size

4.15 MB

Total Files

6

Last publish

Collaborators

  • kitenite