@art-ws/common 2.0.14 → 2.0.15

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.
@@ -30,8 +30,9 @@ export function saveJsonableFile(obj, filename) {
30
30
  }
31
31
  export async function loadJsonableFile(filename) {
32
32
  if (isJsFile(filename)) {
33
- const module = await import(filename);
34
- return module.default || module;
33
+ // https://github.com/vitejs/vite/issues/14850#issuecomment-1791534118
34
+ const jsModule = await import(/* @vite-ignore */ filename);
35
+ return jsModule.default || jsModule;
35
36
  }
36
37
  else if (isYamlFile(filename)) {
37
38
  return loadAndParseFile(filename, parseYaml);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@art-ws/common",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "common",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",