Skip to content

Commit d166d27

Browse files
committed
Apply changesets and update CHANGELOG
1 parent 6806108 commit d166d27

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

lib/README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ import { raw } from "esbuild-raw-plugin";
6868
export default defineConfig({
6969
entry: ["src/index.ts"],
7070
outDir: "dist",
71-
plugins: [raw()],
71+
esbuildPlugins: [raw()],
7272
});
7373
```
7474

7575
---
7676

7777
## IDE Setup for IntelliSense and Type Checking
7878

79-
Add following to your declaration file. If you do not have one, create `declarations.d.ts` file and add following.
79+
Add the following to your declaration file. If you do not have one, create a `declarations.d.ts` file and add the following:
8080

8181
```typescript
8282
declare module "*?raw" {
@@ -122,6 +122,17 @@ export interface RawPluginOptions {
122122
* You can provide your own extensions to optimize build performance or extend the list based on your use case.
123123
*/
124124
ext?: string[];
125+
126+
/**
127+
* Custom loader for file processing.
128+
* @defaultValue "text"
129+
*/
130+
loader?: "text" | "base64" | "dataurl" | "file" | "binary" | "default";
131+
132+
/**
133+
* Extensions to be treated as text files.
134+
*/
135+
textExtensions?: string[];
125136
}
126137
```
127138

0 commit comments

Comments
 (0)