@vixt/core 0.5.6 → 0.5.8

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.
@@ -128,16 +128,16 @@ async function applyLayerModules(layers) {
128
128
  for (const m of modulesDirs.reverse()) {
129
129
  if (fs.existsSync(m)) {
130
130
  const files = fs.readdirSync(m);
131
- for (const f of files) {
132
- const p = path.resolve(m, f);
131
+ for (const f of files.filter((f2) => !f2.includes(".") || /\.[jt]s$/.test(f2))) {
133
132
  try {
133
+ const fileURL = pathToFileURL(path.resolve(m, f));
134
134
  const module = await import(
135
135
  /* @vite-ignore */
136
- pathToFileURL(p)
136
+ fileURL
137
137
  ).then((m2) => m2.default);
138
138
  modules.push(module);
139
139
  } catch (error) {
140
- console.error("[LoadVixtModule Error]:", error);
140
+ console.error("[VixtModule Error]:", error);
141
141
  }
142
142
  }
143
143
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.5.6",
4
+ "version": "0.5.8",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
@@ -43,7 +43,7 @@
43
43
  "pkg-types": "^2.2.0",
44
44
  "tsx": "^4.20.3",
45
45
  "vite": "^7.0.5",
46
- "vite-plugin-checker": "^0.10.0"
46
+ "vite-plugin-checker": "^0.10.1"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "unbuild",