Skip to content

Commit

Permalink
Add import type assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwjohnston committed Nov 19, 2023
1 parent d99c5ab commit e7d7674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/$.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";
export const loader = async (loaderInput:LoaderFunctionArgs) => {

const pathname = loaderInput.params["*"];
const result = await import(`../app/json/${pathname}.json`);
const result = await import(`../app/json/${pathname}.json`, {assert: {type: "json"}});


return result;
Expand Down

0 comments on commit e7d7674

Please sign in to comment.