Skip to content

Commit 860c729

Browse files
committed
Update README.md
1 parent 0ec9275 commit 860c729

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![CI](https://badgen.net/github/checks/vanruesc/esbuild-plugin-glsl/main)](https://github.com/vanruesc/esbuild-plugin-glsl/actions)
44
[![Version](https://badgen.net/npm/v/esbuild-plugin-glsl?color=green)](https://www.npmjs.com/package/esbuild-plugin-glsl)
55

6-
An [esbuild](https://esbuild.github.io/) [plugin](https://esbuild.github.io/plugins/) that adds support for `.frag`, `.vert` and `.glsl` [file imports](https://esbuild.github.io/content-types/#text) with optional shader minification.
6+
An [esbuild](https://esbuild.github.io/) [plugin](https://esbuild.github.io/plugins/) that adds support for `.frag`, `.vert`, `.glsl` and `.wgsl` [file imports](https://esbuild.github.io/content-types/#text) with optional shader minification.
77

88
## Installation
99

@@ -29,9 +29,14 @@ build({
2929

3030
### TypeScript
3131

32-
To make the TypeScript compiler know how to handle GLSL files, add a `glsl.d.ts` file to your project:
32+
To make the TypeScript compiler know how to handle shader sources, add a `shaders.d.ts` file to your project:
3333

3434
```ts
35+
declare module "*.wgsl" {
36+
const value: string;
37+
export default value;
38+
}
39+
3540
declare module "*.glsl" {
3641
const value: string;
3742
export default value;

0 commit comments

Comments
 (0)