1
0
Эх сурвалжийг харах

chore: remove @type/next temporarily to avoid node 18 problem

林艳 1 жил өмнө
parent
commit
4c8279172c

+ 4 - 5
packages/semi-next/src/index.ts

@@ -1,5 +1,4 @@
-// @ts-nocheck
-import { NextConfig } from 'next';
+// import { NextConfig } from 'next';
 import SemiWebpackPlugin from '@douyinfe/semi-webpack-plugin';
 
 export interface SemiNextOptions {
@@ -7,10 +6,10 @@ export interface SemiNextOptions {
 }
 
 export default function(options: SemiNextOptions = {}) {
-    return (nextConfig: NextConfig = {}) => {
-        const actualConfig: NextConfig = {
+    return (nextConfig: any = {}) => {
+        const actualConfig: any = {
             ...nextConfig,
-            webpack(config, { isServer, webpack, ...rest }) {
+            webpack(config: any, { isServer, webpack, ...rest }: any) {
                 config.plugins.push(new SemiWebpackPlugin({
                     omitCss: options.omitCss === undefined ? true : options.omitCss,
                     webpackContext: {