File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @vanilla-extract/next-plugin ' : patch
3
+ ---
4
+
5
+ Fix error when intializing plugin
Original file line number Diff line number Diff line change @@ -2,16 +2,13 @@ import { VanillaExtractPlugin } from '@vanilla-extract/webpack-plugin';
2
2
import browserslist from 'browserslist' ;
3
3
import { lazyPostCSS } from 'next/dist/build/webpack/config/blocks/css' ;
4
4
import { findPagesDir } from 'next/dist/lib/find-pages-dir' ;
5
- import nextMiniCssExtractPluginExports from 'next/dist/build/webpack/plugins/mini-css-extract-plugin' ;
5
+ import NextMiniCssExtractPluginDefault from 'next/dist/build/webpack/plugins/mini-css-extract-plugin' ;
6
6
7
7
import type webpack from 'webpack' ;
8
8
import type { NextConfig } from 'next/types' ;
9
9
import type { WebpackConfigContext } from 'next/dist/server/config-shared' ;
10
10
11
- // Next.js' built-in mini-css-extract-plugin has a very terrible type definition, let's just use any
12
- const NextMiniCssExtractPlugin : any =
13
- // @ts -expect-error -- Next.js' precompilation does add "__esModule: true", but doesn't add an actual default exports
14
- nextMiniCssExtractPluginExports . default ;
11
+ const NextMiniCssExtractPlugin = NextMiniCssExtractPluginDefault as any ;
15
12
16
13
function getSupportedBrowsers ( dir : any , isDevelopment : any ) {
17
14
let browsers ;
You can’t perform that action at this time.
0 commit comments