Skip to content

Commit

Permalink
Update index.ts for vite@5
Browse files Browse the repository at this point in the history
  • Loading branch information
gkiely authored Nov 16, 2023
1 parent 3b03907 commit 61c37ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function ViteEjsPlugin(data: ViteEjsPluginDataType = {}, options?: ViteEjsPlugin
},

transformIndexHtml: {
enforce: "pre",
transform(html) {
order: "pre",
handler(html) {
if (typeof data === "function") data = data(config);
let ejsOptions = options && options.ejs ? options.ejs : {};
if (typeof ejsOptions === "function") ejsOptions = ejsOptions(config);
Expand Down Expand Up @@ -59,4 +59,4 @@ function ViteEjsPlugin(data: ViteEjsPluginDataType = {}, options?: ViteEjsPlugin
}


export {ViteEjsPlugin, ejs}
export {ViteEjsPlugin, ejs}

0 comments on commit 61c37ac

Please sign in to comment.