Skip to content

Commit 61c37ac

Browse files
authored
Update index.ts for vite@5
1 parent 3b03907 commit 61c37ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function ViteEjsPlugin(data: ViteEjsPluginDataType = {}, options?: ViteEjsPlugin
3030
},
3131

3232
transformIndexHtml: {
33-
enforce: "pre",
34-
transform(html) {
33+
order: "pre",
34+
handler(html) {
3535
if (typeof data === "function") data = data(config);
3636
let ejsOptions = options && options.ejs ? options.ejs : {};
3737
if (typeof ejsOptions === "function") ejsOptions = ejsOptions(config);
@@ -59,4 +59,4 @@ function ViteEjsPlugin(data: ViteEjsPluginDataType = {}, options?: ViteEjsPlugin
5959
}
6060

6161

62-
export {ViteEjsPlugin, ejs}
62+
export {ViteEjsPlugin, ejs}

0 commit comments

Comments
 (0)