We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1ae2c commit 347acf3Copy full SHA for 347acf3
javascript/ql/lib/semmle/javascript/frameworks/Babel.qll
@@ -3,6 +3,7 @@
3
*/
4
5
import javascript
6
+private import semmle.javascript.internal.paths.PathMapping
7
8
module Babel {
9
/**
@@ -202,4 +203,12 @@ module Babel {
202
203
)
204
}
205
206
+
207
+ private class BabelPathMapping extends PathMapping, RootImportConfig {
208
+ override File getAnAffectedFile() { result = this.getConfig().getAContainerInScope() }
209
210
+ override predicate hasPrefixPathMapping(string pattern, Container newContext, string newPath) {
211
+ newPath = this.getRoot(pattern) and newContext = this.getFolder()
212
+ }
213
214
0 commit comments