Parcel supports importing WebGL shaders using the
@parcel/transformer-glsl plugin. When a
.frag file is detected, it will be installed into your project automatically.
import frag from './shader.frag'
Parcel also supports dependencies within GLSL files using a pragma, including from libraries in node_modules. These are bundled together into a single shader that you can load into a WebGL context.