CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

Predicate isWebpackNamedBundle

Holds if object looks like a Webpack bundle of form:

var __webpack_modules__ = ({
  "file1": ((module, __webpack__exports__, __webpack_require__) => ...)
  ...
})

Import path

import semmle.javascript.frameworks.Bundling
predicate isWebpackNamedBundle(ObjectExpr object)