Skip to content

fix(build): prepend 'use client' banner and externalize react/jsx-runtime - #7

Merged
Kickz1nn merged 1 commit into
Kickz1nn:mainfrom
ATP0925:fix/use-client-and-jsx-runtime
Nov 10, 2026
Merged

Kickz1nn merged 1 commit into
Kickz1nn:mainfrom
ATP0925:fix/use-client-and-jsx-runtime

Conversation

@ATP0925

@ATP0925 ATP0925 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Externalized react/jsx-runtime to prevent bundling React 19 internal symbols and restore compatibility with React 17 and 18.
  • Added 'use client'; banner to build output to allow seamless importing in Next.js App Router layout components.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring (code improvement with no functional changes)

Related Issues

Closes #4
Closes #5

How Has This Been Tested?

  • Verified dist/index.js contains 'use client'; directive at line 1.
  • Verified react/jsx-runtime is externalized and not bundled in build output.

@Kickz1nn

Copy link
Copy Markdown
Owner

Awesome work! Thanks for taking care of both issues at once—the changes in vite.config.ts are spot on 🚀

I've just updated the PR description slightly to match our project's template and keep everything organized in our history. Merging this now!

@Kickz1nn
Kickz1nn merged commit 45ac7fd into Kickz1nn:main Nov 10, 2026
1 check passed
@Kickz1nn Kickz1nn added this to the v0.2.1 milestone Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants