webpack-glsl-loader icon indicating copy to clipboard operation
webpack-glsl-loader copied to clipboard

Allow webpack's loader to resolve imports directly

Open tim-depthkit opened this issue 4 years ago • 0 comments

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.

tim-depthkit avatar Jan 18 '22 18:01 tim-depthkit