fix: utils in client

This commit is contained in:
2023-07-08 01:17:57 -03:00
parent 201f55a1b8
commit a380f837b9
2 changed files with 20 additions and 1 deletions

View File

@@ -1,10 +1,29 @@
/** @type {import('next').NextConfig} */
import path from 'path';
const workspace = path.resolve(process.cwd(), '../../');
const nextConfig = {
compiler: {
styledComponents: true,
},
reactStrictMode: true,
webpack: (config, options) => {
config.module = {
...config.module,
rules: [
...config.module.rules,
{
exclude: /node_modules/,
include: [workspace],
test: /\.(js|jsx|ts|tsx)$/,
use: options.defaultLoaders.babel,
},
],
};
return config;
},
};
export default nextConfig;