In my case it works by using the #include macro and placing the file name without the quote marks:
#include perlin_noise3d.glsl;
This works on three.js