From eff6051f026c221298c6288213e290d82a0a3817 Mon Sep 17 00:00:00 2001 From: SinhSinh An Date: Wed, 22 Apr 2026 14:49:12 -0500 Subject: [PATCH] fix(prettier-plugin-liquid): route standalone externals to prettier/standalone The webpack config for the browser `standalone.js` bundle declared the `prettier` external with `commonjs: 'prettier'` and `commonjs2: 'prettier'`. The resulting UMD wrapper emitted `require('prettier')` in both the `module.exports` and `exports[...]` branches, so downstream bundlers (webpack, rollup, vite) processing `standalone.js` for a browser target resolved prettier's Node-flavored main entry. That entry imports `module`, `url`, and `path` and crashes browser builds with "Module not found" errors. Route the `commonjs` and `commonjs2` keys to `prettier/standalone`, matching the `amd` branch, so downstream bundlers land on prettier's browser-safe entry. Keep `root: 'prettier'` so