JSPM

glslify-client

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26973F
  • License MIT

Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps

Package Exports

  • glslify-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glslify-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

glslify-client

experimental

Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps.

Usage

NPM

getSource = Client(getTree)

Creates a new getSource function.

getTree(source, done) should be a function that takes a single GLSL source string, and calls done(err, deps) with the dependency list retrieved from glslify-deps.

getSource(source, done)

Given a single GLSL source string, retrieves the dependency tree (if required) and calls done(null, bundledSource) with the resulting bundled GLSL file.

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.