From a8fdf35749335d9f9380cd6bc44fcb4f380598f8 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Mon, 10 Nov 2025 10:08:47 +0100 Subject: [PATCH] delete css map files --- packages/nextjs/src/config/getBuildPluginOptions.ts | 2 +- packages/nextjs/test/config/getBuildPluginOptions.test.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nextjs/src/config/getBuildPluginOptions.ts b/packages/nextjs/src/config/getBuildPluginOptions.ts index 6de802917015..e36e88802fa5 100644 --- a/packages/nextjs/src/config/getBuildPluginOptions.ts +++ b/packages/nextjs/src/config/getBuildPluginOptions.ts @@ -40,7 +40,7 @@ const FILE_PATTERNS = { } as const; // Source map file extensions to delete -const SOURCEMAP_EXTENSIONS = ['*.js.map', '*.mjs.map', '*.cjs.map'] as const; +const SOURCEMAP_EXTENSIONS = ['*.js.map', '*.mjs.map', '*.cjs.map', '*.css.map'] as const; type BuildTool = keyof typeof LOGGER_PREFIXES; diff --git a/packages/nextjs/test/config/getBuildPluginOptions.test.ts b/packages/nextjs/test/config/getBuildPluginOptions.test.ts index 0281624584d0..609183d198bb 100644 --- a/packages/nextjs/test/config/getBuildPluginOptions.test.ts +++ b/packages/nextjs/test/config/getBuildPluginOptions.test.ts @@ -308,6 +308,7 @@ describe('getBuildPluginOptions', () => { '/path/to/.next/static/**/*.js.map', '/path/to/.next/static/**/*.mjs.map', '/path/to/.next/static/**/*.cjs.map', + '/path/to/.next/static/**/*.css.map', ]); }); @@ -331,6 +332,7 @@ describe('getBuildPluginOptions', () => { '/path/to/.next/static/**/*.js.map', '/path/to/.next/static/**/*.mjs.map', '/path/to/.next/static/**/*.cjs.map', + '/path/to/.next/static/**/*.css.map', ]); }); @@ -355,6 +357,7 @@ describe('getBuildPluginOptions', () => { '/path/to/.next/static/**/*.js.map', '/path/to/.next/static/**/*.mjs.map', '/path/to/.next/static/**/*.cjs.map', + '/path/to/.next/static/**/*.css.map', ]); }); @@ -788,6 +791,7 @@ describe('getBuildPluginOptions', () => { `${complexPath}/static/**/*.js.map`, `${complexPath}/static/**/*.mjs.map`, `${complexPath}/static/**/*.cjs.map`, + `${complexPath}/static/**/*.css.map`, ]); }); });