Skip to content

Commit 0c1eb9d

Browse files
committed
chore: fix typecheck
1 parent a626a62 commit 0c1eb9d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

playground/amd/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default defineConfig({
1212
plugin: path.resolve(import.meta.dirname, './index.ts'),
1313
},
1414
output: {
15+
// @ts-expect-error AMD is not supported (https://github.com/rolldown/rolldown/issues/2528)
1516
format: 'amd',
1617
entryFileNames: 'assets/[name].js',
1718
},

playground/backend-integration/__tests__/backend-integration.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ describe.runIf(isBuild)('build', () => {
7878
expect(dirFooAssetEntry).not.toBeUndefined() // '\\' should not be used even on windows
7979
// use the entry name
8080
expect(dirFooAssetEntry.file).toMatch('assets/bar-')
81-
if (process.env._VITE_TEST_JS_PLUGIN) {
82-
expect(dirFooAssetEntry.names).toStrictEqual(['bar.css'])
83-
}
81+
expect(dirFooAssetEntry.name).toStrictEqual('bar.css')
8482
expect(customNameAssetEntry.name).toStrictEqual('bar.custom')
8583
expect(iconEntrypointEntry?.file).not.toBeUndefined()
8684
expect(waterContainerEntry?.file).not.toBeUndefined()

0 commit comments

Comments
 (0)