mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
Merge eeb413e3aa into ad25634905
This commit is contained in:
commit
fef7ef510d
1 changed files with 14 additions and 1 deletions
|
|
@ -1,7 +1,20 @@
|
||||||
|
import path from "path"
|
||||||
import type { NextConfig } from "next"
|
import type { NextConfig } from "next"
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
turbopack: {},
|
turbopack: {
|
||||||
|
root: path.join(__dirname, "../.."),
|
||||||
|
},
|
||||||
|
webpack: (config) => {
|
||||||
|
// Enable .js -> .ts/.tsx resolution for workspace packages using NodeNext
|
||||||
|
// module resolution (e.g. @roo-code/types, @roo-code/ipc, @roo-code/cloud)
|
||||||
|
config.resolve.extensionAlias = {
|
||||||
|
".js": [".ts", ".tsx", ".js", ".jsx"],
|
||||||
|
".mjs": [".mts", ".mjs"],
|
||||||
|
".cjs": [".cts", ".cjs"],
|
||||||
|
}
|
||||||
|
return config
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export default nextConfig
|
export default nextConfig
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue