mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge pull request #752 from c9s/upgrade-nextjs-11-to-12
Upgrade nextjs from 11 to 12
This commit is contained in:
commit
70319692c8
1
frontend/next-env.d.ts
vendored
1
frontend/next-env.d.ts
vendored
|
@ -1,5 +1,4 @@
|
||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
|
||||||
/// <reference types="next/image-types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
// NOTE: This file should not be edited
|
// NOTE: This file should not be edited
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
const withTM = require('next-transpile-modules')([
|
module.exports = async (phase, { defaultConfig }) => {
|
||||||
'@react-spring/three',
|
/**
|
||||||
'@react-spring/web',
|
* @type {import('next').NextConfig}
|
||||||
]);
|
*/
|
||||||
|
const nextConfig = {
|
||||||
module.exports = withTM({
|
/* config options here */
|
||||||
// disable webpack 5 to make it compatible with the following rules
|
}
|
||||||
webpack5: false,
|
return nextConfig
|
||||||
webpack: (config, options) => {
|
}
|
||||||
config.module.rules.push({
|
|
||||||
test: /react-spring/,
|
|
||||||
sideEffects: true,
|
|
||||||
});
|
|
||||||
return config;
|
|
||||||
},
|
|
||||||
});
|
|
|
@ -12,31 +12,30 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.9.3",
|
"@emotion/react": "^11.9.3",
|
||||||
"@emotion/styled": "^11.9.3",
|
"@emotion/styled": "^11.9.3",
|
||||||
|
"@ethersproject/units": "^5.6.1",
|
||||||
"@mui/icons-material": "^5.8.3",
|
"@mui/icons-material": "^5.8.3",
|
||||||
"@mui/lab": "^5.0.0-alpha.85",
|
"@mui/lab": "^5.0.0-alpha.85",
|
||||||
"@mui/material": "^5.8.3",
|
"@mui/material": "^5.8.3",
|
||||||
"@mui/styles": "^5.8.3",
|
"@mui/styles": "^5.8.3",
|
||||||
"@mui/x-data-grid": "^5.12.1",
|
"@mui/x-data-grid": "^5.12.1",
|
||||||
"@nivo/bar": "^0.73.1",
|
"@nivo/bar": "^0.79.1",
|
||||||
"@nivo/core": "^0.73.0",
|
"@nivo/core": "^0.79.0",
|
||||||
"@nivo/pie": "^0.73.0",
|
"@nivo/pie": "^0.79.1",
|
||||||
"@usedapp/core": "0.5.4",
|
"@usedapp/core": "1.0.9",
|
||||||
"axios": "^0.22.0",
|
"axios": "^0.27.2",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
"ethers": "^5.6.9",
|
||||||
"isomorphic-fetch": "^3.0.0",
|
"isomorphic-fetch": "^3.0.0",
|
||||||
"next": "^11.1.2",
|
"next": "12",
|
||||||
"qrcode.react": "^3.0.1",
|
"qrcode.react": "^3.0.1",
|
||||||
"react": "^17.0.1",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^18.2.0",
|
||||||
"react-number-format": "^4.4.4",
|
"react-number-format": "^4.4.4"
|
||||||
"react-spring": "^9.3.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^14.14.22",
|
"@types/node": "^18.0.0",
|
||||||
"@types/react": "^17.0.0",
|
"@types/react": "^18.0.14",
|
||||||
"next-transpile-modules": "^6.1.0",
|
"next-transpile-modules": "^9.0.0",
|
||||||
"postcss-flexbugs-fixes": "^5.0.2",
|
|
||||||
"postcss-preset-env": "^6.7.0",
|
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.6.2",
|
||||||
"typescript": "^4.1.3"
|
"typescript": "^4.1.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
plugins: [
|
|
||||||
// 'tailwindcss',
|
|
||||||
'postcss-flexbugs-fixes',
|
|
||||||
[
|
|
||||||
'postcss-preset-env',
|
|
||||||
{
|
|
||||||
autoprefixer: {
|
|
||||||
flexbox: 'no-2009',
|
|
||||||
},
|
|
||||||
stage: 3,
|
|
||||||
features: {
|
|
||||||
'custom-properties': false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
],
|
|
||||||
};
|
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"strict": false,
|
"strict": false,
|
||||||
|
@ -12,8 +16,15 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve"
|
"jsx": "preserve",
|
||||||
|
"incremental": true
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": [
|
||||||
"exclude": ["node_modules"]
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
4051
frontend/yarn.lock
4051
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user