Skip to content

Commit

Permalink
Fix prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Feb 5, 2024
1 parent 246826b commit a620554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/esbuild-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const hanamiEsbuild = (options: PluginOptions): Plugin => {
// Convert "public/assets/app-2TLUHCQ6.js" to "app.js"
let sourceUrl = compiledEntryPoint
.replace(options.destDir + "/", "")
.replace(/(-[A-Z0-9]{8})(\.\S+)$/, "$2")
.replace(/(-[A-Z0-9]{8})(\.\S+)$/, "$2");

const destinationUrl = calulateDestinationUrl(compiledEntryPoint);

Expand Down
4 changes: 2 additions & 2 deletions test/hanami-assets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe("hanami-assets", () => {
url: "/assets/app-6PW7FGD5.js",
},
});
})
});

test("handles TypeScript", async () => {
const entryPoint1 = path.join(dest, "app/assets/js/app.ts");
Expand Down Expand Up @@ -223,7 +223,7 @@ describe("hanami-assets", () => {
url: "/assets/nested/app-5VHYTKP2.js",
},
});
})
});

test(
"watch",
Expand Down

0 comments on commit a620554

Please sign in to comment.