If it is static, you don't have to put it public, Use vite static asset trick
// Load assets as strings import assetAsString from './shader.glsl?raw'