diff --git a/cds/cdl.md b/cds/cdl.md index 75f55994c..8e09d216e 100644 --- a/cds/cdl.md +++ b/cds/cdl.md @@ -1624,11 +1624,11 @@ Imports in `cds` work very much like [`require` in Node.js](https://nodejs.org/a In fact, we reuse **[Node's module loading mechanisms](https://nodejs.org/api/modules.html#modules_all_together)**. Hence, the same rules apply: -- Relative path resolution +- Relative path resolution
Names starting with `./` or `../` are resolved relative to the current model. -- Resolving absolute references +- Resolving absolute references
Names starting with `/` are resolved absolute to the file system. -- Resolving module references +- Resolving module references
Names starting with neither `.` nor `/` such as `@sap/cds/common` are fetched for in `node_modules` folders: - Files having _.cds_, _.csn_, or _.json_ as suffixes, appended in order - Folders, from either the file set in `cds.main` in the folder's _package.json_ or `index.` file.