How to use the glslify-deps.prototype function in glslify-deps

To help you get started, we’ve selected a few glslify-deps examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glslify / glslify / transform.js View on Github external
var opts = transform[1] || {}
        return opts.post && { name: name, opts: opts, base: path.dirname(rootFile) }
      })
      .filter(Boolean)
      .concat(sharedPosts)
      .map(function (tr) {
        if (typeof tr.name === "function") {
          tr.tr = tr.name
        } else {
          var target = resolve.sync(tr.name, { basedir: tr.base || mdir })
          tr.tr = require(target)
        }
        return tr
      })

    gdeps.prototype.applyTransforms(rootFile, source, localPosts, done);
  }
}

glslify-deps

Walk the dependency graph of a glslify shader.

ISC
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis

Popular glslify-deps functions

Similar packages