esbuild-plugin-glsl
Version:
An esbuild plugin that adds support for shader imports.
14 lines (13 loc) • 411 B
TypeScript
/**
* A comment that contains legal information.
*/
/**
* Minifies the given source code.
*
* Based on https://github.com/vwochnik/rollup-plugin-glsl
*
* @param source - The source code.
* @param preserveLegalComments - Controls whether license comments should be preserved.
* @return The minified code.
*/
export declare function minifyShader(source: string, preserveLegalComments: boolean): string;