Rollup build setup to import glsl files and three.js examples

Have you got it running with Gulp? I’m trying to bundle custom .glsl files with my Gulp app without success.

I’m using this module: https://www.npmjs.com/package/gulp-glsl with the same gulpfile.js as recommended:

const gulp = require('gulp');
const glsl = require('gulp-glsl');

gulp.src('src/**/*.glsl')
  .pipe(glsl())
  .pipe(gulp.dest('build'));

but always run into compile errors:

#extension GL_OES_standard_derivatives : enable
^
ParseError: Unexpected character '#'`

Have you got custom shaders working with gulp?