Skip to content

Error compiling glslify file with relative module imports #35

Description

@franjaviersans

I have a relative import in my files like this:

#pragma glslify: someModule = require("../../shaders/utils/someModule.glsl")

And the extension fails to compile like this:

GLSL Lint: GLSL Lint: failed to compile the glslify file! Error: Cannot find module

As it is using only the basedir indicated as an option or the working directory path.

Is it possible to set an option to solve the import relative to the current file directory?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions