这是indexloc提供的服务,不要输入任何密码
Skip to content

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
@github-actions
Copy link
Contributor

🎉 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