We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38c4dc2 commit 766690dCopy full SHA for 766690d
plugins/changelog.ts
@@ -1,6 +1,6 @@
1
import fs from "fs";
2
import https from "https";
3
-import { Plugin } from "node_modules/vite/dist/node/index";
+import { Plugin } from "vite";
4
5
export interface Commit {
6
sha: string;
@@ -88,7 +88,7 @@ async function getChangelog(): Promise<string> {
88
resp.on("end", () => {
89
resolve(data);
90
});
91
- }
+ },
92
)
93
.on("error", (err) => {
94
reject(err);
@@ -101,6 +101,7 @@ async function getChangelog(): Promise<string> {
101
102
export default function createPlugin(): Plugin {
103
return {
104
+ name: "Changelog",
105
enforce: "pre",
106
async transform(code) {
107
if (code.includes("import.meta.CHANGELOG")) {
0 commit comments