Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update esbuild version to latest for keeping unknown directives during bundle #925

Merged
merged 3 commits into from
Jun 16, 2023

Conversation

teobler
Copy link
Contributor

@teobler teobler commented Jun 15, 2023

Since Nextjs 13 app folder will use RSC by default, for lib author we need to add 'use client' directive on the top of bundle file, but older version of esbuild will filter all the unknown directives:
image

This PR upgrade esbuild to latest version(more info here) and add a new test for 'use client' directives.

And another side, this PR update one snapshot as well, because of this change from esbuild.

I think this PR can close #835 as well, please feel free to give feedback, thx

@codesandbox
Copy link

codesandbox bot commented Jun 15, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@vercel
Copy link

vercel bot commented Jun 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2023 6:50am

@socket-security
Copy link

New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: esbuild@0.17.6

@egoist egoist merged commit e2e70e8 into egoist:dev Jun 16, 2023
3 of 7 checks passed
@github-actions
Copy link

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build react package for use in nextjs 13
2 participants