-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix export * warning for client pages #3795
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
|
Benchmark for d9fd67f
Click to view full benchmark
|
c66a4f4
to
fa9ecab
Compare
__turbopack_export_value__
as CJS style exports@@ -167,7 +167,7 @@ impl CodeGenerateable for EsmExports { | |||
let ident = ReferencedAsset::get_ident_from_placeable(asset).await?; | |||
|
|||
cjs_exports.push(quote_expr!( | |||
"__turbopack__cjs__($arg)", | |||
"__turbopack_cjs__($arg)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kdy1 I really wonder why we didn't notice that earlier...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 nits
crates/turbopack-ecmascript/src/transform/server_to_client_proxy.rs
Outdated
Show resolved
Hide resolved
Benchmark for 258454d
Click to view full benchmark
|
Detect `__turbopack_export_value__` as CJS style exports fix `__turbopack_cjs__` name flag turbopackHelper in client proxy
1f30335
to
c8734bc
Compare
Benchmark for c9a43a8
Click to view full benchmark
|
…jjsweb.site> Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com> # New Features - vercel/turborepo#3771 - vercel/turborepo#3690 # Performance - vercel/turborepo#3768 # Fixes - vercel/turborepo#3795 - vercel/turborepo#3746 - vercel/turborepo#3832 - vercel/turborepo#3827 - vercel/turborepo#3847 # Other - vercel/turborepo#3803 - vercel/turborepo#3685 - vercel/turborepo#3848 --------- Co-authored-by: JJ Kasper <jj@jjsweb.site> Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
This gets rid of this warning when using a client component as page: ``` warning - [analyze] [project-with-next]/src/app/client/page.jsx unexpected export * export * used with module [project-with-next]/src/app/client/page.jsx which has no exports Typescript only: Did you want to export only types with `export type { ... } from "..."`? ``` * fix export * warning for client pages * Detect `__turbopack_export_value__` as CJS style exports * fix `__turbopack_cjs__` name * flag turbopackHelper in client proxy
This gets rid of this warning when using a client component as page: ``` warning - [analyze] [project-with-next]/src/app/client/page.jsx unexpected export * export * used with module [project-with-next]/src/app/client/page.jsx which has no exports Typescript only: Did you want to export only types with `export type { ... } from "..."`? ``` * fix export * warning for client pages * Detect `__turbopack_export_value__` as CJS style exports * fix `__turbopack_cjs__` name * flag turbopackHelper in client proxy
This gets rid of this warning when using a client component as page: ``` warning - [analyze] [project-with-next]/src/app/client/page.jsx unexpected export * export * used with module [project-with-next]/src/app/client/page.jsx which has no exports Typescript only: Did you want to export only types with `export type { ... } from "..."`? ``` * fix export * warning for client pages * Detect `__turbopack_export_value__` as CJS style exports * fix `__turbopack_cjs__` name * flag turbopackHelper in client proxy
This gets rid of this warning when using a client component as page: ``` warning - [analyze] [project-with-next]/src/app/client/page.jsx unexpected export * export * used with module [project-with-next]/src/app/client/page.jsx which has no exports Typescript only: Did you want to export only types with `export type { ... } from "..."`? ``` * fix export * warning for client pages * Detect `__turbopack_export_value__` as CJS style exports * fix `__turbopack_cjs__` name * flag turbopackHelper in client proxy
This gets rid of this warning when using a client component as page: ``` warning - [analyze] [project-with-next]/src/app/client/page.jsx unexpected export * export * used with module [project-with-next]/src/app/client/page.jsx which has no exports Typescript only: Did you want to export only types with `export type { ... } from "..."`? ``` * fix export * warning for client pages * Detect `__turbopack_export_value__` as CJS style exports * fix `__turbopack_cjs__` name * flag turbopackHelper in client proxy
This gets rid of this warning when using a client component as page:
__turbopack_export_value__
as CJS style exports__turbopack_cjs__
name