Skip to content

Commit

Permalink
Update src/require.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 23, 2024
1 parent 775e856 commit 8e04ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function jitiRequire(
} else if (id.startsWith("data:")) {
if (opts.async === false) {
throw new Error(
"data: URLs are not supported by CJS. Use import/jiti.import instead.",
"\`data:\` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.",

Check failure on line 26 in src/require.ts

View workflow job for this annotation

GitHub Actions / autofix

Unnecessary escape character: \`

Check failure on line 26 in src/require.ts

View workflow job for this annotation

GitHub Actions / autofix

Unnecessary escape character: \`

Check failure on line 26 in src/require.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 22)

Unnecessary escape character: \`

Check failure on line 26 in src/require.ts

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 22)

Unnecessary escape character: \`
);
} else {
debug(ctx, "[native]", "[data]", "[import]", id);
Expand Down

0 comments on commit 8e04ef6

Please sign in to comment.