From 687821bba179666badf6151a276661c0bd06759b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Fri, 16 Jun 2023 10:58:32 +0200 Subject: [PATCH] Keep vue sass loader dependency (#286) When a vue.js project uses sass loading the corresponding dependencies must be kept in place. For: https://shiftleftinc.atlassian.net/browse/SEN-1120 --- .../io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala index acf6b1c3..0365d526 100644 --- a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala +++ b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilationRunner.scala @@ -24,7 +24,7 @@ class TranspilationRunner(projectPath: Path, tmpTranspileDir: Path, config: Conf private val transpilers: Seq[Transpiler] = createTranspilers() - private val DEPS_TO_KEEP: List[String] = List("@vue", "vue", "nuxt") + private val DEPS_TO_KEEP: List[String] = List("@vue", "vue", "nuxt", "sass", "node-sass") private def createTranspilers(): Seq[Transpiler] = { // We always run the following transpilers by default when not stated otherwise in the Config.