File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/documentation/docs/updates Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,8 @@ await builder.build({
101101
102102** New: @ui5/project v3**
103103
104- #### ESM
105-
106- ``` js
104+ ::: code-group
105+ ``` js [ESM]
107106import {graphFromPackageDependencies } from " @ui5/project/graph" ;
108107
109108let graph = await graphFromPackageDependencies ({cwd: " ." });
@@ -114,9 +113,7 @@ await graph.build({
114113});
115114```
116115
117- #### CommonJS
118-
119- ``` js
116+ ``` js [CommonJS]
120117// Since CommonJS does not suport top-level await, the code must be wrapped in an asynchronous function
121118async function buildProject () {
122119 const {graphFromPackageDependencies } = await import (" @ui5/project/graph" );
@@ -129,6 +126,7 @@ async function buildProject() {
129126 });
130127}
131128```
129+ :::
132130
133131## Changes to @ui5/cli
134132
You can’t perform that action at this time.
0 commit comments