Skip to content

Commit 877ed6a

Browse files
format
1 parent 3a13aaf commit 877ed6a

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎packages/start-plugin-core/src/rsbuild/import-protection.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,8 +1723,10 @@ export function registerImportProtection(
17231723
edge.resolved,
17241724
)
17251725

1726-
const importProtectionCheck =
1727-
getRsbuildResolvedImportProtectionCheck(relativeResolved, matchers)
1726+
const importProtectionCheck = getRsbuildResolvedImportProtectionCheck(
1727+
relativeResolved,
1728+
matchers,
1729+
)
17281730
if (!importProtectionCheck) {
17291731
continue
17301732
}

‎packages/start-plugin-core/tests/rsbuild/import-protection.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ describe('getRsbuildResolvedImportProtectionCheck', () => {
4242
}
4343

4444
expect(
45-
getRsbuildResolvedImportProtectionCheck('src/marked-server-only.ts', matchers),
45+
getRsbuildResolvedImportProtectionCheck(
46+
'src/marked-server-only.ts',
47+
matchers,
48+
),
4649
).toEqual({ type: 'marker' })
4750
})
4851
})

‎packages/start-plugin-core/tests/rsbuild/post-build.test.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ describe('postBuildWithRsbuild', () => {
3636
].join('\n'),
3737
)
3838

39-
const { postBuildWithRsbuild } = await import(
40-
'../../src/rsbuild/post-build'
41-
)
39+
const { postBuildWithRsbuild } =
40+
await import('../../src/rsbuild/post-build')
4241

4342
try {
4443
await postBuildWithRsbuild({

0 commit comments

Comments
 (0)