build: switch to next-rspack

pull/19181/head
Ray Wu 1 year ago
parent 349c3cf7b8
commit 1810b52bca

@ -1,5 +1,7 @@
const { basePath, assetPrefix } = require('./utils/var-basePath') const { basePath, assetPrefix } = require('./utils/var-basePath')
const { codeInspectorPlugin } = require('code-inspector-plugin') const { codeInspectorPlugin } = require('code-inspector-plugin')
const withRspack = require('next-rspack')
const withMDX = require('@next/mdx')({ const withMDX = require('@next/mdx')({
extension: /\.mdx?$/, extension: /\.mdx?$/,
options: { options: {
@ -50,4 +52,4 @@ const nextConfig = {
output: 'standalone', output: 'standalone',
} }
module.exports = withMDX(nextConfig) module.exports = withRspack(withMDX(nextConfig))

@ -46,7 +46,7 @@
"@mdx-js/loader": "^3.1.0", "@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0", "@mdx-js/react": "^3.1.0",
"@monaco-editor/react": "^4.6.0", "@monaco-editor/react": "^4.6.0",
"@next/mdx": "15.2.3", "@next/mdx": "15.3.1",
"@octokit/core": "^6.1.2", "@octokit/core": "^6.1.2",
"@octokit/request-error": "^6.1.5", "@octokit/request-error": "^6.1.5",
"@remixicon/react": "^4.5.0", "@remixicon/react": "^4.5.0",
@ -91,7 +91,7 @@
"mime": "^4.0.4", "mime": "^4.0.4",
"mitt": "^3.0.1", "mitt": "^3.0.1",
"negotiator": "^0.6.3", "negotiator": "^0.6.3",
"next": "15.2.3", "next": "15.3.1",
"next-themes": "^0.4.3", "next-themes": "^0.4.3",
"pinyin-pro": "^3.25.0", "pinyin-pro": "^3.25.0",
"qrcode.react": "^4.2.0", "qrcode.react": "^4.2.0",
@ -146,7 +146,7 @@
"@eslint/js": "^9.20.0", "@eslint/js": "^9.20.0",
"@faker-js/faker": "^9.0.3", "@faker-js/faker": "^9.0.3",
"@happy-dom/jest-environment": "^17.4.4", "@happy-dom/jest-environment": "^17.4.4",
"@next/eslint-plugin-next": "^15.2.3", "@next/eslint-plugin-next": "^15.3.1",
"@rgrove/parse-xml": "^4.1.0", "@rgrove/parse-xml": "^4.1.0",
"@storybook/addon-essentials": "8.5.0", "@storybook/addon-essentials": "8.5.0",
"@storybook/addon-interactions": "8.5.0", "@storybook/addon-interactions": "8.5.0",
@ -194,6 +194,7 @@
"lint-staged": "^15.2.10", "lint-staged": "^15.2.10",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"magicast": "^0.3.4", "magicast": "^0.3.4",
"next-rspack": "^15.3.1",
"postcss": "^8.4.47", "postcss": "^8.4.47",
"sass": "^1.80.3", "sass": "^1.80.3",
"storybook": "8.5.0", "storybook": "8.5.0",

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save