0.0.13 • Published 2 years ago

@vercel/nft-next-plugin v0.0.13

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
2 years ago

@vercel/nft-next-plugin

Installation

  • yarn add -D @vercel/nft-next-plugin
  • npm install -D @vercel/nft-next-plugin
  • pnpm install -D @vercel/nft-next-plugin

Usage

// next.config.js

const { createNodeFileTrace } = require('@vercel/nft-next-plugin')

const withNodeFileTrace = createNodeFileTrace({
    // experimental nft options
    log: {
        all: true,
    },
})

module.exports = withNodeFileTrace({
    // next config
})

experimental nft options

Note

The default options should work fine.

Warn

The experimental nft does not support pnpm yet.

  • cwd?: string, default is process.cwd(), you can override it to specify another directory to run experimental nft.
  • contextDirectory?: string, relative to cwd, default is .. It must be the directory where the node_modules directory is located. If you are in the monorepo, you should set it to the root directory of the monorepo. For yarn2+/npm workspaces, the default value will respect the PROJECT_CWD and npm_config_local_prefix environment variables injected by yarn/npm client. If the default value doesn't work, you can override it to specify the root directory of the monorepo.
  • path?: string, additional path which will be appended into the PATH environment variable.
  • log?.all?: boolean, default is false, whether to show all logs.
  • log?.level?: string, default is error, the log level.
  • log?.detail?: boolean, default is false, whether to expand the log details.
0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7-0

2 years ago

0.0.7-canary.0

2 years ago