Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jun 18, 2024
1 parent 14ff28f commit 7fee187
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@ export default function transformSource(
type: RSC_MODULE_TYPES.client,
}

const suffix = isServer ? 'export const __esm = 1;' : ''
return code + '\n' + suffix
return code
}
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async function createComponentTreeInternal({
if (hasSlotKey && rootLayoutAtThisLevel && LayoutOrPage) {
Component = (componentProps: { params: Params }) => {
const NotFoundComponent = NotFound
const RootLayoutComponent = LayoutOrPage!
const RootLayoutComponent = LayoutOrPage
return (
<NotFoundBoundary
notFound={
Expand Down
1 change: 0 additions & 1 deletion test/e2e/esm-externals/app/client/page.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'

import World1 from 'app-esm-package1/entry'
// import('app-esm-package1') SSR layer
import World2 from 'app-esm-package2/entry'
import World3 from 'app-cjs-esm-package/entry'

Expand Down

0 comments on commit 7fee187

Please sign in to comment.