Skip to content

Commit 73a1033

Browse files
committed
fix: Code group labels
1 parent 16c0acb commit 73a1033

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/documentation/docs/updates/migrate-v3.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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]
107106
import {graphFromPackageDependencies} from "@ui5/project/graph";
108107

109108
let 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
121118
async 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

0 commit comments

Comments
 (0)