@expofp/utils 3.0.0-alpha.3 → 3.0.0-alpha.5
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.
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import debug from 'debug';
|
|
2
|
-
import { importJsonModule } from './importJsonModule.js';
|
|
3
|
-
const log = debug('efp:utils:importRuntimeJsonModule');
|
|
4
|
-
export async function importRuntimeJsonModule(fileName) {
|
|
5
|
-
// ignore because vite may rewrite '.' to data:...
|
|
6
|
-
const baseUrl = new URL(/* @vite-ignore */ '.', import.meta.url).href;
|
|
7
|
-
const url = new URL(fileName, baseUrl);
|
|
8
|
-
log('Loading runtime JSON from', url.href);
|
|
9
|
-
return await importJsonModule(url.href);
|
|
10
|
-
}
|