Skip to content

Commit

Permalink
chore: remove regex hack
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Feb 12, 2025
1 parent 6d1f9d5 commit be44ef6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/next/src/build/webpack/config/blocks/css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,7 @@ export const css = curry(async function css(
// Exclude extensions that webpack handles by default
exclude: [
/\.(js|mjs|jsx|ts|tsx)$/,
// TODO investigate why this is needed
...(isRspack ? [/^$/] : []),
/\.html$/,
/\.html$/,
/\.json$/,
/\.webpack\[[^\]]+\]$/,
],
Expand Down

0 comments on commit be44ef6

Please sign in to comment.