Skip to content

Commit 9f9c8e5

Browse files
committed
Rename originalFile to sourceFile
1 parent f4f4816 commit 9f9c8e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/html.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type IndexOptions = {
77
/**
88
* Path to the original HTML file that will be modified.
99
*/
10-
originalFile: string;
10+
sourceFile: string;
1111

1212
/**
1313
* Path where the modified HTML file will be written to. By default this is an index.html file in the outdir or next to the outfile.
@@ -52,7 +52,7 @@ export async function generateIndexHTML(result: BuildResult, opts: IndexOptions,
5252

5353
const cheerio = await tryImport(() => import("cheerio"), "cheerio", "HTML generation");
5454

55-
const $ = cheerio.load(await fs.promises.readFile(opts.originalFile));
55+
const $ = cheerio.load(await fs.promises.readFile(opts.sourceFile));
5656

5757
if (opts.preload) {
5858
for (const item of opts.preload) {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const vuePlugin = (opts: Options = {}) => <esbuild.Plugin>{
209209
if (opts?.generateHTML && result.errors.length == 0) {
210210
if (typeof opts.generateHTML === "string") {
211211
opts.generateHTML = {
212-
originalFile: opts.generateHTML
212+
sourceFile: opts.generateHTML
213213
}
214214
}
215215

0 commit comments

Comments
 (0)