Skip to content

chore: remove CJS/UMD builds#8103

Merged
wmertens merged 4 commits intoQwikDev:build/v2from
JerryWu1234:no-cjs
Nov 10, 2025
Merged

chore: remove CJS/UMD builds#8103
wmertens merged 4 commits intoQwikDev:build/v2from
JerryWu1234:no-cjs

Conversation

@JerryWu1234
Copy link
Contributor

…e. Remove CJS generation configuration one module at a time, which makes it easier to find bugs.

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos
  • Infra

Description

Checklist

  • My code follows the developer guidelines of this project
  • I performed a self-review of my own code
  • I added a changeset with pnpm change
  • I made corresponding changes to the Qwik docs
  • I added new tests to cover the fix / functionality

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2025

🦋 Changeset detected

Latest commit: fe3fbb6

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JerryWu1234
Copy link
Contributor Author

Create Pr for testing

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 31, 2025

Open in StackBlitz

npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/core@8103
npm i https://pkg.pr.new/QwikDev/qwik/@qwik.dev/router@8103
npm i https://pkg.pr.new/QwikDev/qwik/eslint-plugin-qwik@8103
npm i https://pkg.pr.new/QwikDev/qwik/create-qwik@8103

commit: 3a9b920

@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview fcbea53

@JerryWu1234 JerryWu1234 marked this pull request as ready for review November 6, 2025 05:35
@JerryWu1234 JerryWu1234 requested review from a team as code owners November 6, 2025 05:35
@wmertens wmertens changed the title refactor: Doesn't generate CJS while building when config.qwik is tru… chore: remove CJS/UMD builds Nov 6, 2025
Copy link
Member

@wmertens wmertens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

Can you also add a separate commit that puts "type": "module" in all those package.json files?

And add a changeset with a major change that says something like BREAKING: the CJS/UMD builds have been removed; ESM is well-supported everywhere and allows better optimizations.

@JerryWu1234 JerryWu1234 force-pushed the no-cjs branch 5 times, most recently from 40671a0 to 38e8cee Compare November 10, 2025 06:52
@gioboa gioboa self-requested a review November 10, 2025 07:26
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you address @wmertens 's suggestions please?

@JerryWu1234
Copy link
Contributor Author

Can you address @wmertens 's suggestions please?

Done

Copy link
Member

@wmertens wmertens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wmertens wmertens enabled auto-merge November 10, 2025 08:20
auto-merge was automatically disabled November 10, 2025 08:23

Head branch was pushed to by a user without write access

@wmertens wmertens merged commit 200c81e into QwikDev:build/v2 Nov 10, 2025
18 checks passed
@wmertens wmertens moved this from Backlog to Done in Qwik Development Nov 10, 2025
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏👏

@shairez
Copy link
Contributor

shairez commented Nov 11, 2025

good job @JerryWu1234 ! 🎉 🙏

JerryWu1234 added a commit to JerryWu1234/qwik that referenced this pull request Dec 9, 2025
After PR QwikDev#8103 migrated from CJS to ESM, the execa package was marked
as external in the esbuild config but was not declared as a dependency
in create-qwik's package.json.

This caused 'Cannot find package execa' error when running:
npx create-qwik@2.0.0-beta.15

Fixes the runtime error by adding execa to dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants