Skip to content

Commit 5f8dc11

Browse files
committed
WIP debug
1 parent 6259ed3 commit 5f8dc11

File tree

4 files changed

+39
-38
lines changed

4 files changed

+39
-38
lines changed

bench/nested-deps/app/actions.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
'use server'
22

3-
import {
4-
AArrowDown,
5-
AArrowUp,
6-
ALargeSmall,
7-
Accessibility,
8-
Activity,
9-
AirVent,
10-
Airplay,
11-
AlarmClockCheck,
12-
AlarmClockMinus,
13-
AlarmClockOff,
14-
AlarmClockPlus,
15-
AlarmClock,
16-
} from 'lucide-react'
3+
// import {
4+
// AArrowDown,
5+
// AArrowUp,
6+
// ALargeSmall,
7+
// Accessibility,
8+
// Activity,
9+
// AirVent,
10+
// Airplay,
11+
// AlarmClockCheck,
12+
// AlarmClockMinus,
13+
// AlarmClockOff,
14+
// AlarmClockPlus,
15+
// AlarmClock,
16+
// } from 'lucide-react'
1717

1818
export async function foo() {
1919
console.log(
20-
'hello!',
21-
AArrowDown,
22-
AArrowUp,
23-
ALargeSmall,
24-
Accessibility,
25-
Activity,
26-
AirVent,
27-
Airplay,
28-
AlarmClockCheck,
29-
AlarmClockMinus,
30-
AlarmClockOff,
31-
AlarmClockPlus,
32-
AlarmClock
20+
'hello!'
21+
// AArrowDown,
22+
// AArrowUp,
23+
// ALargeSmall,
24+
// Accessibility,
25+
// Activity,
26+
// AirVent,
27+
// Airplay,
28+
// AlarmClockCheck,
29+
// AlarmClockMinus,
30+
// AlarmClockOff,
31+
// AlarmClockPlus,
32+
// AlarmClock
3333
)
3434
}

bench/nested-deps/app/page.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import Client from './client'
22

3+
import { foo } from './actions'
4+
35
export default function Page() {
4-
return (
5-
<Client
6-
inline={async () => {
7-
'use server'
8-
console.log('inline')
9-
}}
10-
/>
11-
)
6+
return <Client inline={foo} />
127
}

packages/next/src/build/swc/generated-native.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ export declare function codeFrameColumns(
111111
location: NapiCodeFrameLocation,
112112
options?: NapiCodeFrameOptions | undefined | null
113113
): string | null
114+
/**
115+
* Convert an array of dash-case feature name strings to a lightningcss
116+
* `Features` bitmask (u32). Called from the webpack lightningcss-loader to
117+
* avoid duplicating the name-to-bit mapping in JavaScript.
118+
*/
119+
export declare function lightningcssFeatureNamesToMaskNapi(
120+
names: Array<string>
121+
): number
114122
export declare function lockfileTryAcquireSync(
115123
path: string,
116124
content?: string | undefined | null
@@ -248,7 +256,7 @@ export interface NapiProjectOptions {
248256
isPersistentCachingEnabled: boolean
249257
/** The version of Next.js that is running. */
250258
nextVersion: RcStr
251-
/** Whether server-side HMR is enabled (requires --experimental-server-fast-refresh). */
259+
/** Whether server-side HMR is enabled (--experimental-server-fast-refresh). */
252260
serverHmr?: boolean
253261
}
254262
/** [NapiProjectOptions] with all fields optional. */
@@ -294,8 +302,6 @@ export interface NapiPartialProjectOptions {
294302
* debugging/profiling purposes.
295303
*/
296304
noMangling?: boolean
297-
/** Whether server-side HMR is enabled (requires --experimental-server-fast-refresh). */
298-
serverHmr?: boolean
299305
}
300306
export interface NapiDefineEnv {
301307
client: Array<NapiOptionEnvVar>

0 commit comments

Comments
 (0)