Skip to content

fix(live-preview-vue): update build config to compile as esm#14293

Merged
JessRynkar merged 3 commits intopayloadcms:mainfrom
danielwaltz:main
Feb 6, 2026
Merged

fix(live-preview-vue): update build config to compile as esm#14293
JessRynkar merged 3 commits intopayloadcms:mainfrom
danielwaltz:main

Conversation

@danielwaltz
Copy link
Copy Markdown
Contributor

The distributed files for @payloadcms/live-preview-vue are compiled to commonjs instead of ESM, which causes issues in ESM based projects like when using Nuxt.

This PR fixes this issue by updating the built config to be es6, matching what most other packages are using.

Related to #12806

@github-actions
Copy link
Copy Markdown
Contributor

Pull Request titles must follow the Conventional Commits specification and have valid scopes.

Unknown scope "live-preview-vue" found in pull request title "fix(live-preview-vue): update build config to compile as esm". Scope must match one of: cpa, db-*, db-d1-sqlite, db-mongodb, db-postgres, db-vercel-postgres, db-sqlite, db-d1-sqlite, drizzle, email-*, email-nodemailer, email-resend, eslint, graphql, live-preview, live-preview-react, next, payload-cloud, plugin-cloud, plugin-cloud-storage, plugin-ecommerce, plugin-form-builder, plugin-import-export, plugin-multi-tenant, plugin-nested-docs, plugin-redirects, plugin-search, plugin-sentry, plugin-seo, plugin-stripe, richtext-*, richtext-lexical, richtext-slate, sdk, storage-*, storage-azure, storage-gcs, storage-r2, storage-uploadthing, storage-vercel-blob, storage-s3, translations, ui, templates, examples(/(\w|-)+)?, deps.

feat(ui): add Button component
^    ^    ^
|    |    |__ Subject
|    |_______ Scope
|____________ Type

@danielwaltz danielwaltz requested a review from denolfe as a code owner October 21, 2025 21:42
@github-actions github-actions Bot added the stale label Nov 23, 2025
@github-actions github-actions Bot removed the stale label Jan 23, 2026
@JessRynkar
Copy link
Copy Markdown
Member

Hi @danielwaltz thank you for opening this! Apologies for the delay in getting it reviewed. This change looks good to me, it aligns the package with the rest of the live-preview ecosystem. Once tests run/pass, I will approve 👍

@JessRynkar JessRynkar merged commit 60c65ed into payloadcms:main Feb 6, 2026
296 of 298 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

🚀 This is included in version v3.76.0

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

🚀 This is included in version v3.76.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants