webpack-glsl-loader
webpack-glsl-loader copied to clipboard
Allow webpack's loader to resolve imports directly
Currently the resolve line prepends a './' to the import key, meaning that if I try to reference code that lives in an external package, it will fail to resolve. Removing the restriction of imports being relative to the current file allows me to specify a GLSL library in one package, and reference it in another, greatly increasing the utility of this loader.