|
|
|
@ -5,6 +5,8 @@ const withLess = require('next-with-less');
|
|
|
|
const withTM = require('next-transpile-modules')([
|
|
|
|
const withTM = require('next-transpile-modules')([
|
|
|
|
'@arco-design/web-react',
|
|
|
|
'@arco-design/web-react',
|
|
|
|
'@arco-themes/react-arco-pro',
|
|
|
|
'@arco-themes/react-arco-pro',
|
|
|
|
|
|
|
|
'@xyflow/react',
|
|
|
|
|
|
|
|
'@xyflow/system'
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
const setting = require("./src/settings.json");
|
|
|
|
const setting = require("./src/settings.json");
|
|
|
|
@ -29,6 +31,9 @@ module.exports = withLess(
|
|
|
|
'./src/public/assets'
|
|
|
|
'./src/public/assets'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
config.resolve.alias['@'] = path.resolve(__dirname, './src');
|
|
|
|
config.resolve.alias['@'] = path.resolve(__dirname, './src');
|
|
|
|
|
|
|
|
// 解决 react/jsx-runtime 找不到的问题
|
|
|
|
|
|
|
|
config.resolve.alias['react/jsx-runtime'] = path.resolve(__dirname, './node_modules/react/jsx-runtime.js');
|
|
|
|
|
|
|
|
config.resolve.alias['react/jsx-dev-runtime'] = path.resolve(__dirname, './node_modules/react/jsx-dev-runtime.js');
|
|
|
|
|
|
|
|
|
|
|
|
return config;
|
|
|
|
return config;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|