Skip to content

Commit

Permalink
Remove import to @sap/cds for services
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeo committed Jan 9, 2025
1 parent cc2cd0c commit 4c62ac8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,6 @@ class SourceFile extends File {
*/
getImports() {
const buffer = new Buffer()
if (this.services.names.length) {
// currently only needed to extend cds.Service and would trigger unused-variable-errors in strict configs
buffer.add('import cds from \'@sap/cds\'') // TODO should go to visitor#printService, but can't express this as Path
}
const file = configuration.targetModuleType === 'esm'
? '/index.js'
: ''
Expand Down

0 comments on commit 4c62ac8

Please sign in to comment.