fix: rename name to names prop of rollup to fix deprecated warning (#2106)

This commit is contained in:
Patryk Kuniczak
2026-02-10 19:23:19 +01:00
committed by GitHub
parent f523a7d31d
commit 9470d2b696
+2 -2
View File
@@ -146,10 +146,10 @@ export async function createViteBuilder(
),
// Output content script CSS to `content-scripts/`, but all other scripts are written to
// `assets/`.
assetFileNames: ({ name }) => {
assetFileNames: ({ names }) => {
if (
entrypoint.type === 'content-script' &&
name?.endsWith('css')
names[0].endsWith('css')
) {
return `content-scripts/${entrypoint.name}.[ext]`;
} else {