File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ export async function build(
99 options : Pick < BuildOptions , 'root' | 'lib' | 'watch' > = { } ,
1010) : Promise < RsbuildInstance > {
1111 const cwd = process . cwd ( ) ;
12- options . root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
12+ const root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
1313
14- const environments = await composeRsbuildEnvironments ( config , options . root ) ;
14+ const environments = await composeRsbuildEnvironments ( config , root ) ;
1515 const rsbuildInstance = await createRsbuild ( {
1616 rsbuildConfig : {
1717 environments : pruneEnvironments ( environments , options . lib ) ,
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ export async function inspect(
1212 > = { } ,
1313) : Promise < RsbuildInstance > {
1414 const cwd = process . cwd ( ) ;
15- options . root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
15+ const root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
1616
17- const environments = await composeRsbuildEnvironments ( config , options . root ) ;
17+ const environments = await composeRsbuildEnvironments ( config , root ) ;
1818 const rsbuildInstance = await createRsbuild ( {
1919 rsbuildConfig : {
2020 environments : pruneEnvironments ( environments , options . lib ) ,
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ export async function startMFDevServer(
1010 options : Pick < CommonOptions , 'root' > = { } ,
1111) : Promise < RsbuildInstance | undefined > {
1212 const cwd = process . cwd ( ) ;
13- options . root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
14- const rsbuildInstance = await initMFRsbuild ( config , options . root ) ;
13+ const root = options . root ? getAbsolutePath ( cwd , options . root ) : cwd ;
14+ const rsbuildInstance = await initMFRsbuild ( config , root ) ;
1515 return rsbuildInstance ;
1616}
1717
You can’t perform that action at this time.
0 commit comments