@expofp/utils 3.3.7 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,5 +3,5 @@ export async function importNodeModule(moduleName) {
|
|
|
3
3
|
throw new Error('importNodeModule can only be used in Node.js environments');
|
|
4
4
|
}
|
|
5
5
|
// prevents Vite/Rollup from analyzing the import specifier
|
|
6
|
-
return new Function(
|
|
6
|
+
return new Function('moduleName', 'return import(moduleName)')(moduleName);
|
|
7
7
|
}
|