Resolve Alias

Stops webpack build errors from Node-only modules in the admin bundle

Community 7 1.2k/wk MIT v0.1.0

Installation

pnpm add payload-plugin-resolve-alias

About

Resolve Alias fixes the webpack build error that appears when a Payload project pulls Node.js core modules or server-only packages into the browser bundle. Newer webpack versions no longer add polyfills for modules such as util, so the build fails with a "Module not found" error somewhere inside a dependency. Add the plugin to your Payload config and list the modules to exclude from the browser build, and the build goes through. A built-in list covers common server-only packages such as express, nodemailer, passport and util, so you often do not need to type them yourself.

Package info

Package name
payload-plugin-resolve-alias
Latest version
0.1.0
Unpacked size
7 kB
License
MIT
Weekly downloads
1.2k
Last publish
Nov 5, 2022

More from thgh

View profile

Adds OAuth sign-in buttons to the Payload admin login page

Similar plugins

More in Devtools

Chat agent that composes and edits Payload pages from your block library

Exposes Payload collections and globals to AI agents through the Model Context Protocol

Lets AI assistants read and edit Payload content over MCP with scoped API keys

Editorial suite that lets teams run a Payload site through MCP tools and AI assistants

Typed block registry and React Server Component renderer for Payload blocks

Runs Payload CMS admin and APIs under vinext, on Node or Cloudflare Workers