glslify / glslify-import

A transform stream for glslify that adds an `import` directive to your shaders.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

done is not a function

seep opened this issue · comments

I think I'm missing something completely obvious but I'm getting an error on https://github.com/hughsk/glslify-import/blob/master/index.js#L45 that done is not a function. My build statement is:

budo index.js --live -- -t [ babelify --optional runtime ] -t glslify -t glslify-import

And my import statement is:

#pragma glslify: import('./shader-chunk-lambert-vert.glsl')

Should glslify-import be provided as a transform for glslify instead of browsrify? How would I go about that?

Yeah, glslify-import should be a transform for glslify instead of browserify :) Have you tried this?

budo index.js --live -t [ babelify --optional runtime ] -t [ glslify -t glslify-import ]

Ah, thank you. I had to tweak it a little, -t wasn't being recognized for some reason. The working command is

budo index.js --live -- -t [ babelify --optional runtime ] -t [ glslify --transform glslify-import ]

Thanks for the help!