Package Exports
- glslify-bundle
- glslify-bundle/lib/clean-suffixes
- glslify-bundle/lib/topo-sort
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-bundle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
glslify-bundle
Bundle a glslify-deps dependency tree into a GLSL source string.
This has been separated from glslify-deps such that you can prebundle a dependency tree server-side, but then still modify shader file contents in a browser.
Usage
source = bundle(deps)
Takes the output object from glslify-deps and returns a bundled GLSL string.
var bundle = require('glslify-bundle')
var deps = require('glslify-deps')
var path = require('path')
var file = path.join(__dirname, 'index.glsl')
deps().add(file, function(err, tree) {
if (err) throw err
var glsl = bundle(tree)
console.log(glsl)
})
Contributing
See stackgl/contributing for details.
License
MIT. See LICENSE.md for details.