@vixt/core 0.6.0 → 0.6.1

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.
@@ -227,8 +227,8 @@ function resolveEntryCode(options, vixt) {
227
227
  const { entryCode, entryFile } = options;
228
228
  for (const layer of vixt._layers) {
229
229
  const layerEntryPath = path.resolve(layer.config.srcDir, entryFile);
230
- const code = fs.existsSync(layerEntryPath) && fs.readFileSync(layerEntryPath, "utf-8");
231
- if (!isEmptyCode(code || "")) return code;
230
+ const code = fs.existsSync(layerEntryPath) && fs.readFileSync(layerEntryPath, "utf-8") || "";
231
+ if (!isEmptyCode(code)) return code;
232
232
  }
233
233
  return entryCode;
234
234
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixt/core",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "author": "SoulLyoko<https://github.com/SoulLyoko>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://soullyoko.github.io/vixt/",
File without changes