File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,15 @@ import { raw } from "esbuild-raw-plugin";
6868export 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
8282declare 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
You can’t perform that action at this time.
0 commit comments