We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a24e0 commit dccce59Copy full SHA for dccce59
src/eval.ts
@@ -19,7 +19,7 @@ export function evalModule(
19
ctx: Context,
20
source: string,
21
evalOptions: EvalModuleOptions = {},
22
-) {
+): any {
23
// Resolve options
24
const id =
25
evalOptions.id ||
@@ -74,7 +74,10 @@ export function evalModule(
74
).catch((error: any) => {
75
debug(ctx, "Native import error:", error);
76
debug(ctx, "[fallback]", filename);
77
- evalModule(ctx, source, { ...evalOptions, forceTranspile: true });
+ return evalModule(ctx, source, {
78
+ ...evalOptions,
79
+ forceTranspile: true,
80
+ });
81
});
82
} else {
83
try {
0 commit comments