Skip to content

Commit f03aa40

Browse files
author
linfeng
committed
feat: rename rootId to projectRootId
1 parent ae38a55 commit f03aa40

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/built-in-plugins/command-docs/plugin/dev-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function prepare(docsEntryPath: string) {
172172
173173
const Docs = () => <DocsWrapper docs={DocComponents}/>
174174
175-
const ROOT_ID = '${pri.sourceConfig.rootId}';
175+
const ROOT_ID = '${pri.sourceConfig.projectRootId}';
176176
177177
setConfig({ pureSFC: true, pureRender: true })
178178

src/utils/create-entry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class Entry {
159159
import * as Loadable from "react-loadable"
160160
import App, { pageLoadableMap } from "./app"
161161
162-
const ROOT_ID = "${pri.sourceConfig.rootId}"
162+
const ROOT_ID = "${pri.sourceConfig.projectRootId}"
163163
`,
164164
);
165165
}

src/utils/define.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class ProjectConfig {
261261
/**
262262
* Project Root Dom Id
263263
*/
264-
public rootId = 'root';
264+
public projectRootId = 'root';
265265
}
266266

267267
export type SetPipe = (pipeName: string, callback: PipeCallback) => void;

0 commit comments

Comments
 (0)