Skip to content

Commit

Permalink
chore: update jiti-native
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 12, 2024
1 parent 758c1ee commit 8b76742
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/jiti-native.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export function createJiti(parentURL = "./_.js", _opts) {

jiti.esmResolve = (id, opts) => {
try {
console.log("resolve", { id, from: opts?.parentURL || parentURL });
return import.meta.resolve(id, opts?.parentURL || parentURL);
} catch (error) {
if (opts?.try) {
Expand Down Expand Up @@ -75,7 +74,7 @@ export default createJiti;
*/
function unsupportedError(message) {
throw new Error(
`[jiti] ${message} (import or require \`jiti/node\` for more features).`,
`[jiti] ${message} (import or require 'jiti' instead of 'jiti/native' for more features).`,
);
}

Expand Down

0 comments on commit 8b76742

Please sign in to comment.