We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 724de0e commit 09c5205Copy full SHA for 09c5205
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "basho-eval",
3
- "version": "8.0.0",
+ "version": "8.0.2",
4
"main": "dist/index.js",
5
"type": "module",
6
"types": "dist/index.d.ts",
src/operators/doImport.ts
@@ -48,7 +48,7 @@ export async function evalImport(
48
const packageJSON = JSON.parse(fs.readFileSync(pkg, "utf8"));
49
const indexFile = packageJSON.main || "index.js";
50
const fileToLoad = path.join(pathInNodeModules, indexFile);
51
- (global as any)[alias] = (await import(fileToLoad))[alias];
+ (global as any)[alias] = (await import(fileToLoad))[name];
52
} else {
53
throw new Error(`Unable to find module ${pathToImport}.`);
54
}
0 commit comments