File tree Expand file tree Collapse file tree
built-in-plugins/command-docs/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 },
2323 "[typescript]" : {
2424 "editor.defaultFormatter" : " esbenp.prettier-vscode"
25+ },
26+ "editor.codeActionsOnSave" : {
27+ "source.fixAll.eslint" : true
2528 }
2629}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ function prepare(docsEntryPath: string) {
172172
173173 const Docs = () => <DocsWrapper docs={DocComponents}/>
174174
175- const ROOT_ID = 'root ';
175+ const ROOT_ID = '${ pri . sourceConfig . rootId } ';
176176
177177 setConfig({ pureSFC: true, pureRender: true })
178178
Original file line number Diff line number Diff line change 11import * as fs from 'fs-extra' ;
22import * as path from 'path' ;
3+ import { pri } from '../node' ;
34import * as pipe from '../node/pipe' ;
45import { PRI_PACKAGE_NAME } from './constants' ;
56import { globalState } from './global-state' ;
@@ -158,7 +159,7 @@ export class Entry {
158159 import * as Loadable from "react-loadable"
159160 import App, { pageLoadableMap } from "./app"
160161
161- const ROOT_ID = "root "
162+ const ROOT_ID = "${ pri . sourceConfig . rootId } "
162163 ` ,
163164 ) ;
164165 }
Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ export class ProjectConfig {
257257 * Enable hot loader
258258 */
259259 public hotReload = true ;
260+
261+ /**
262+ * Project Root Dom Id
263+ */
264+ public rootId = 'root' ;
260265}
261266
262267export type SetPipe = ( pipeName : string , callback : PipeCallback ) => void ;
You can’t perform that action at this time.
0 commit comments