Skip to main content

yarn builder build plugin

note

To use this command, you need to use the @yarnpkg/builder package either:

  • By installing it locally using yarn add and running it using yarn run
  • By downloading and running it in a temporary environment using yarn dlx

Build a local plugin.

Usage

$ yarn builder build plugin

Examples

Build a local plugin :

yarn builder build plugin

Build a local development plugin :

yarn builder build plugin --no-minify

Details

This command builds a local plugin.

For more details about the build process, please consult the @yarnpkg/builder README: https://github.com/yarnpkg/berry/blob/HEAD/packages/yarnpkg-builder/README.md.

Options

DefinitionDescription

--no-minify

Build a plugin for development, without optimizations (minifying, mangling, treeshaking)

--source-map

Includes a source map in the bundle

--metafile

Emit a metafile next to the bundle