Skip to content

Commit

Permalink
fix: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 21, 2024
1 parent c192111 commit 2342e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bundler-webpack/src/build/createClientConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
CssNanoOptionsExtended,
} from 'css-minimizer-webpack-plugin'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
import type { CssModule } from 'mini-css-extract-plugin'
import type Config from 'webpack-5-chain'
import { createClientBaseConfig } from '../config/index.js'
import type { WebpackBundlerOptions } from '../types.js'
Expand Down Expand Up @@ -69,7 +70,7 @@ export const createClientConfig = async (
styles: {
idHint: 'styles',
// necessary to ensure async chunks are also extracted
test: (m) => /css\/mini-extract/.test(m.type),
test: (m: CssModule) => /css\/mini-extract/.test(m.type),
chunks: 'all',
enforce: true,
reuseExistingChunk: true,
Expand Down

0 comments on commit 2342e32

Please sign in to comment.