From 4c62ac815777b7924666b066282185da2652d3bb Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Thu, 9 Jan 2025 12:27:27 +0100 Subject: [PATCH] Remove import to `@sap/cds` for services --- lib/file.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/file.js b/lib/file.js index 4f0ada50..e776c546 100644 --- a/lib/file.js +++ b/lib/file.js @@ -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' : ''