mirror of
https://github.com/FranP-code/spend-ia.git
synced 2025-10-13 00:14:09 +00:00
fix: utils in client
This commit is contained in:
@@ -1,10 +1,29 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
|
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
const workspace = path.resolve(process.cwd(), '../../');
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
compiler: {
|
compiler: {
|
||||||
styledComponents: true,
|
styledComponents: true,
|
||||||
},
|
},
|
||||||
reactStrictMode: 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;
|
export default nextConfig;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
"react-chartjs-2": "^5.2.0",
|
"react-chartjs-2": "^5.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-google-charts": "^4.0.0",
|
"react-google-charts": "^4.0.0",
|
||||||
"styled-components": "^6.0.2",
|
"styled-components": "5.3.10",
|
||||||
"zustand": "^4.3.7"
|
"zustand": "^4.3.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user