@stencil/core 5.0.0-alpha.8 → 5.0.0-beta.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.
Files changed (50) hide show
  1. package/README.md +94 -0
  2. package/dist/app-data/index.d.ts +2 -0
  3. package/dist/{runtime/app-data → app-data}/index.js +5 -2
  4. package/dist/client-BRu0GtRn.mjs +2368 -0
  5. package/dist/compiler/index.d.mts +167 -3
  6. package/dist/compiler/index.mjs +3 -3
  7. package/dist/compiler/utils/index.d.mts +272 -2
  8. package/dist/compiler/utils/index.mjs +4 -3
  9. package/dist/{compiler-B3pUYg_P.mjs → compiler-NrvbUOX1.mjs} +2904 -1269
  10. package/dist/declarations/stencil-ext-modules.d.ts +5 -5
  11. package/dist/declarations/stencil-public-compiler.d.ts +208 -62
  12. package/dist/declarations/stencil-public-docs.d.ts +9 -0
  13. package/dist/declarations/stencil-public-runtime.d.ts +91 -6
  14. package/dist/fragment-Di1hWOC8.mjs +4 -0
  15. package/dist/{regular-expression-CFVJOTUh.mjs → helpers-Cpp3qc3u.mjs} +31 -15
  16. package/dist/index-BOrz3rbJ.d.mts +100 -0
  17. package/dist/{index-BuveMLxy.d.ts → index-DnISpqrd.d.ts} +150 -10
  18. package/dist/{index-CVhWFUM0.d.mts → index-RrQfiPWK.d.mts} +490 -841
  19. package/dist/index.d.mts +4 -0
  20. package/dist/index.mjs +91 -2
  21. package/dist/jsx-runtime.mjs +2 -1
  22. package/dist/{node-10UamZmn.mjs → node-75gQKkFz.mjs} +60 -58
  23. package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
  24. package/dist/runtime/client/lazy.js +483 -347
  25. package/dist/runtime/client/runtime.d.ts +150 -39
  26. package/dist/runtime/client/runtime.js +483 -347
  27. package/dist/runtime/index.d.ts +6 -32
  28. package/dist/runtime/index.js +482 -345
  29. package/dist/runtime/server/index.d.mts +81 -9
  30. package/dist/runtime/server/index.mjs +419 -193
  31. package/dist/runtime/server/runner.d.mts +3 -0
  32. package/dist/runtime/server/runner.mjs +321 -338
  33. package/dist/signals/index.d.ts +2 -0
  34. package/dist/signals/index.js +5 -2
  35. package/dist/sys/node/index.d.mts +1 -2
  36. package/dist/sys/node/index.mjs +1 -1
  37. package/dist/sys/node/worker.d.mts +1 -1
  38. package/dist/sys/node/worker.mjs +6 -3
  39. package/dist/testing/index.d.mts +4716 -105
  40. package/dist/testing/index.mjs +7744 -791
  41. package/dist/util-IKfWWLJo.mjs +724 -0
  42. package/dist/validation-DAdGTrys.mjs +791 -0
  43. package/package.json +33 -33
  44. package/dist/client-Dd-NB5Ei.mjs +0 -4833
  45. package/dist/index-ch-cf-bZ.d.mts +0 -205
  46. package/dist/runtime/app-data/index.d.ts +0 -2
  47. package/dist/validation-ByxKj8bC.mjs +0 -1458
  48. /package/{LICENSE.md → LICENSE} +0 -0
  49. /package/dist/{runtime/app-globals → app-globals}/index.d.ts +0 -0
  50. /package/dist/{runtime/app-globals → app-globals}/index.js +0 -0
package/dist/index.d.mts CHANGED
@@ -11,6 +11,7 @@ export type {
11
11
  ComponentDidUpdate,
12
12
  ComponentInterface,
13
13
  ComponentOptions,
14
+ ComponentShouldUpdateChanges,
14
15
  ComponentWillLoad,
15
16
  ComponentWillUpdate,
16
17
  EventEmitter,
@@ -25,6 +26,8 @@ export type {
25
26
  PropOptions,
26
27
  QueueApi,
27
28
  RafCallback,
29
+ ReactiveController,
30
+ ReactiveControllerHostInterface,
28
31
  VNode,
29
32
  VNodeData,
30
33
  } from './declarations/stencil-public-runtime';
@@ -53,6 +56,7 @@ export {
53
56
  Mixin,
54
57
  Prop,
55
58
  readTask,
59
+ ReactiveControllerHost,
56
60
  render,
57
61
  resolveVar,
58
62
  setAssetPath,
package/dist/index.mjs CHANGED
@@ -1,2 +1,91 @@
1
- import { A as AttachInternals, B as Watch, C as setAssetPath, E as setPlatformHelpers, F as Listen, H as Build, I as Method, L as Prop, M as Component, N as Element, O as setErrorHandler, P as Event, R as PropSerialize, S as getAssetPath, T as writeTask, V as resolveVar, _ as getRenderingRef, a as setTagTransformer, b as getElement, c as Mixin, d as getMode, f as setMode, g as forceUpdate, h, j as AttrDeserialize, l as Fragment, m as Host, o as transformTag, s as render, w as readTask, x as getShadowRoot, z as State } from "./client-Dd-NB5Ei.mjs";
2
- export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
1
+ import { C as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, w as Build, x as setPlatformHelpers, y as readTask } from "./client-BRu0GtRn.mjs";
2
+ import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
+ //#region src/client/client-decorators.ts
4
+ /**
5
+ * Runtime stubs for Stencil decorators.
6
+ *
7
+ * These decorators are compile-time metadata flags that Stencil's compiler parses
8
+ * and transforms. At runtime, they do nothing - the actual component behavior is
9
+ * wired up by the compiled output, not by these decorators.
10
+ *
11
+ * These stubs exist so that:
12
+ * 1. Component classes can be instantiated directly in tests without going through
13
+ * Stencil's full compilation pipeline
14
+ * 2. The decorators don't throw "X is not a function" errors when used outside
15
+ * of Stencil's build process
16
+ */
17
+ /**
18
+ * No-op class decorator stub for @Component()
19
+ * @param _opts - component options (ignored at runtime)
20
+ * @returns a class decorator that returns the target unchanged
21
+ */
22
+ const Component = (_opts) => (target) => target;
23
+ /**
24
+ * No-op property decorator stub for @Element()
25
+ * @returns a property decorator that does nothing
26
+ */
27
+ const Element = () => () => {};
28
+ /**
29
+ * No-op property decorator stub for @Event()
30
+ * @param _opts - event options (ignored at runtime)
31
+ * @returns a property decorator that does nothing
32
+ */
33
+ const Event = (_opts) => () => {};
34
+ /**
35
+ * No-op property decorator stub for @AttachInternals()
36
+ * @param _opts - attach internals options (ignored at runtime)
37
+ * @returns a property decorator that does nothing
38
+ */
39
+ const AttachInternals = (_opts) => () => {};
40
+ /**
41
+ * No-op method decorator stub for @Listen()
42
+ * @param _eventName - event name to listen for (ignored at runtime)
43
+ * @param _opts - listen options (ignored at runtime)
44
+ * @returns a method decorator that does nothing
45
+ */
46
+ const Listen = (_eventName, _opts) => () => {};
47
+ /**
48
+ * No-op method decorator stub for @Method()
49
+ * @param _opts - method options (ignored at runtime)
50
+ * @returns a method decorator that does nothing
51
+ */
52
+ const Method = (_opts) => () => {};
53
+ /**
54
+ * No-op property decorator stub for @Prop()
55
+ * @param _opts - prop options (ignored at runtime)
56
+ * @returns a property decorator that does nothing
57
+ */
58
+ const Prop = (_opts) => () => {};
59
+ /**
60
+ * No-op property decorator stub for @State()
61
+ * @returns a property decorator that does nothing
62
+ */
63
+ const State = () => () => {};
64
+ /**
65
+ * No-op method decorator stub for @Watch()
66
+ * @param _propName - property name to watch (ignored at runtime)
67
+ * @param _opts - watch options (ignored at runtime)
68
+ * @returns a method decorator that does nothing
69
+ */
70
+ const Watch = (_propName, _opts) => () => {};
71
+ /**
72
+ * No-op method decorator stub for @PropSerialize()
73
+ * @param _propName - property name to serialize (ignored at runtime)
74
+ * @returns a method decorator that does nothing
75
+ */
76
+ const PropSerialize = (_propName) => () => {};
77
+ /**
78
+ * No-op method decorator stub for @AttrDeserialize()
79
+ * @param _propName - property name to deserialize (ignored at runtime)
80
+ * @returns a method decorator that does nothing
81
+ */
82
+ const AttrDeserialize = (_propName) => () => {};
83
+ /**
84
+ * No-op compile-time utility stub for resolveVar()
85
+ * At runtime, this just returns the string representation of whatever is passed in.
86
+ * @param variable - the variable to resolve
87
+ * @returns the string representation of the variable
88
+ */
89
+ const resolveVar = (variable) => String(variable);
90
+ //#endregion
91
+ export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, ReactiveControllerHost, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
@@ -1,2 +1,3 @@
1
- import { i as jsxs, l as Fragment, n as jsx, r as jsxDEV } from "./client-Dd-NB5Ei.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-BRu0GtRn.mjs";
2
+ import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
2
3
  export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,11 +1,11 @@
1
- import { n as __require } from "./chunk-z9aeyW2b.mjs";
2
- import "./client-Dd-NB5Ei.mjs";
3
- import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-CFVJOTUh.mjs";
4
- import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-ByxKj8bC.mjs";
1
+ import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
+ import "./client-BRu0GtRn.mjs";
3
+ import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
4
+ import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
5
5
  import fs from "node:fs";
6
- import path from "node:path";
6
+ import nodePath from "node:path";
7
7
  import { pathToFileURL } from "node:url";
8
- import path$1 from "path";
8
+ import path from "path";
9
9
  import * as cp from "child_process";
10
10
  import chalk from "chalk";
11
11
  import { createHash } from "node:crypto";
@@ -650,7 +650,8 @@ const INDENT$1 = " ";
650
650
  * @returns the created logger
651
651
  */
652
652
  const createNodeLogger = () => {
653
- return createTerminalLogger(createNodeLoggerSys());
653
+ const loggerSys = createNodeLoggerSys();
654
+ return createTerminalLogger(loggerSys);
654
655
  };
655
656
  /**
656
657
  * Create a logger sys object for use in a Node.js environment
@@ -675,7 +676,7 @@ function createNodeLoggerSys() {
675
676
  return Math.max(Math.min(terminalWidth, max_columns), min_columns);
676
677
  };
677
678
  const memoryUsage = () => process.memoryUsage().rss;
678
- const relativePath = (from, to) => path$1.relative(from, to);
679
+ const relativePath = (from, to) => path.relative(from, to);
679
680
  const writeLogs = (logFilePath, log, append) => {
680
681
  if (append) try {
681
682
  fs.accessSync(logFilePath);
@@ -787,15 +788,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
787
788
  async function processGlobs(copyTask, srcDir) {
788
789
  return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
789
790
  src: getSrcAbsPath(srcDir, copyTask.src),
790
- dest: copyTask.keepDirStructure ? path$1.join(copyTask.dest, copyTask.src) : copyTask.dest,
791
+ dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
791
792
  warn: copyTask.warn,
792
793
  ignore: copyTask.ignore,
793
794
  keepDirStructure: copyTask.keepDirStructure
794
795
  }];
795
796
  }
796
797
  function getSrcAbsPath(srcDir, src) {
797
- if (path$1.isAbsolute(src)) return src;
798
- return path$1.join(srcDir, src);
798
+ if (path.isAbsolute(src)) return src;
799
+ return path.join(srcDir, src);
799
800
  }
800
801
  async function processGlobTask(copyTask, srcDir) {
801
802
  return (await asyncGlob(copyTask.src, {
@@ -805,9 +806,9 @@ async function processGlobTask(copyTask, srcDir) {
805
806
  })).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
806
807
  }
807
808
  function createGlobCopyTask(copyTask, srcDir, globRelPath) {
808
- const dest = path$1.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path$1.basename(globRelPath));
809
+ const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
809
810
  return {
810
- src: path$1.join(srcDir, globRelPath),
811
+ src: path.join(srcDir, globRelPath),
811
812
  dest,
812
813
  ignore: copyTask.ignore,
813
814
  warn: copyTask.warn,
@@ -837,8 +838,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
837
838
  const dirItems = await readdir(copyTask.src);
838
839
  await Promise.all(dirItems.map(async (dirItem) => {
839
840
  await processCopyTask(results, allCopyTasks, {
840
- src: path$1.join(copyTask.src, dirItem),
841
- dest: path$1.join(copyTask.dest, dirItem),
841
+ src: path.join(copyTask.src, dirItem),
842
+ dest: path.join(copyTask.dest, dirItem),
842
843
  warn: copyTask.warn
843
844
  });
844
845
  }));
@@ -849,7 +850,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
849
850
  function ensureDirs(copyTasks) {
850
851
  const mkDirs = [];
851
852
  copyTasks.forEach((copyTask) => {
852
- addMkDir(mkDirs, path$1.dirname(copyTask.dest));
853
+ addMkDir(mkDirs, path.dirname(copyTask.dest));
853
854
  });
854
855
  mkDirs.sort((a, b) => {
855
856
  const partsA = a.split("/").length;
@@ -867,7 +868,7 @@ function addMkDir(mkDirs, destDir) {
867
868
  if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
868
869
  if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
869
870
  }
870
- const ROOT_DIR = normalizePath(path$1.resolve("/"));
871
+ const ROOT_DIR = normalizePath(path.resolve("/"));
871
872
  function shouldIgnore({ src, ignore = [] }) {
872
873
  const filePath = src.trim().toLowerCase();
873
874
  return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
@@ -937,11 +938,12 @@ var NodeLazyRequire = class {
937
938
  return diagnostics;
938
939
  }
939
940
  require(fromDir, moduleId) {
940
- return __require(this.getModulePath(fromDir, moduleId));
941
+ const modulePath = this.getModulePath(fromDir, moduleId);
942
+ return __require(modulePath);
941
943
  }
942
944
  getModulePath(fromDir, moduleId) {
943
945
  const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
944
- return path$1.dirname(modulePath);
946
+ return path.dirname(modulePath);
945
947
  }
946
948
  };
947
949
  //#endregion
@@ -955,18 +957,18 @@ var NodeResolveModule = class {
955
957
  if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
956
958
  if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
957
959
  const Module = __require("module");
958
- fromDir = path$1.resolve(fromDir);
959
- const fromFile = path$1.join(fromDir, "noop.js");
960
+ fromDir = path.resolve(fromDir);
961
+ const fromFile = path.join(fromDir, "noop.js");
960
962
  let dir = normalizePath(Module._resolveFilename(moduleId, {
961
963
  id: fromFile,
962
964
  filename: fromFile,
963
965
  paths: Module._nodeModulePaths(fromDir)
964
966
  }));
965
- const root = normalizePath(path$1.parse(fromDir).root);
967
+ const root = normalizePath(path.parse(fromDir).root);
966
968
  let packageJsonFilePath;
967
969
  while (dir !== root) {
968
- dir = normalizePath(path$1.dirname(dir));
969
- packageJsonFilePath = path$1.join(dir, "package.json");
970
+ dir = normalizePath(path.dirname(dir));
971
+ packageJsonFilePath = path.join(dir, "package.json");
970
972
  if (!fs.existsSync(packageJsonFilePath)) continue;
971
973
  this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
972
974
  return packageJsonFilePath;
@@ -975,12 +977,12 @@ var NodeResolveModule = class {
975
977
  }
976
978
  resolveTypesModule(fromDir, moduleId, cacheKey) {
977
979
  const moduleSplt = moduleId.split("/");
978
- const root = normalizePath(path$1.parse(fromDir).root);
979
- let dir = normalizePath(path$1.join(fromDir, "noop.js"));
980
+ const root = normalizePath(path.parse(fromDir).root);
981
+ let dir = normalizePath(path.join(fromDir, "noop.js"));
980
982
  let typesPackageJsonFilePath;
981
983
  while (dir !== root) {
982
- dir = normalizePath(path$1.dirname(dir));
983
- typesPackageJsonFilePath = path$1.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
984
+ dir = normalizePath(path.dirname(dir));
985
+ typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
984
986
  if (!fs.existsSync(typesPackageJsonFilePath)) continue;
985
987
  this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
986
988
  return typesPackageJsonFilePath;
@@ -988,12 +990,12 @@ var NodeResolveModule = class {
988
990
  throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
989
991
  }
990
992
  resolveModuleManually(fromDir, moduleId, cacheKey) {
991
- const root = normalizePath(path$1.parse(fromDir).root);
992
- let dir = normalizePath(path$1.join(fromDir, "noop.js"));
993
+ const root = normalizePath(path.parse(fromDir).root);
994
+ let dir = normalizePath(path.join(fromDir, "noop.js"));
993
995
  let packageJsonFilePath;
994
996
  while (dir !== root) {
995
- dir = normalizePath(path$1.dirname(dir));
996
- packageJsonFilePath = path$1.join(dir, "node_modules", moduleId, "package.json");
997
+ dir = normalizePath(path.dirname(dir));
998
+ packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
997
999
  if (!fs.existsSync(packageJsonFilePath)) continue;
998
1000
  this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
999
1001
  return packageJsonFilePath;
@@ -1004,7 +1006,7 @@ var NodeResolveModule = class {
1004
1006
  //#endregion
1005
1007
  //#region src/sys/node/node-stencil-version-checker.ts
1006
1008
  const REGISTRY_URL = `https://registry.npmjs.org/@stencil/core`;
1007
- const CHECK_INTERVAL = 1e3 * 60 * 60 * 24 * 7;
1009
+ const CHECK_INTERVAL = 6048e5;
1008
1010
  const CHANGELOG = `https://github.com/stenciljs/core/blob/main/CHANGELOG.md`;
1009
1011
  async function checkVersion(logger, currentVersion) {
1010
1012
  try {
@@ -1079,7 +1081,7 @@ function setLastCheck() {
1079
1081
  });
1080
1082
  }
1081
1083
  function getLastCheckStoragePath() {
1082
- return path$1.join(tmpdir$1(), "stencil_last_version_node.json");
1084
+ return path.join(tmpdir$1(), "stencil_last_version_node.json");
1083
1085
  }
1084
1086
  function printUpdateMessage(logger, currentVersion, latestVersion) {
1085
1087
  const installMessage = `npm install @stencil/core`;
@@ -1389,7 +1391,7 @@ function createNodeSys(c = {}) {
1389
1391
  const sysCpus = cpus();
1390
1392
  const hardwareConcurrency = sysCpus.length;
1391
1393
  const osPlatform = platform();
1392
- const compilerExecutingPath = path.join(__dirname, "compiler", "index.mjs");
1394
+ const compilerExecutingPath = nodePath.join(__dirname, "compiler", "index.mjs");
1393
1395
  const runInterruptsCallbacks = () => {
1394
1396
  const returnValues = [];
1395
1397
  let cb;
@@ -1440,8 +1442,8 @@ function createNodeSys(c = {}) {
1440
1442
  return new Promise((resolve) => {
1441
1443
  if (opts) fs.mkdir(p, opts, (err) => {
1442
1444
  resolve({
1443
- basename: path.basename(p),
1444
- dirname: path.dirname(p),
1445
+ basename: nodePath.basename(p),
1446
+ dirname: nodePath.dirname(p),
1445
1447
  path: p,
1446
1448
  newDirs: [],
1447
1449
  error: err
@@ -1449,8 +1451,8 @@ function createNodeSys(c = {}) {
1449
1451
  });
1450
1452
  else fs.mkdir(p, (err) => {
1451
1453
  resolve({
1452
- basename: path.basename(p),
1453
- dirname: path.dirname(p),
1454
+ basename: nodePath.basename(p),
1455
+ dirname: nodePath.dirname(p),
1454
1456
  path: p,
1455
1457
  newDirs: [],
1456
1458
  error: err
@@ -1460,8 +1462,8 @@ function createNodeSys(c = {}) {
1460
1462
  },
1461
1463
  createDirSync(p, opts) {
1462
1464
  const results = {
1463
- basename: path.basename(p),
1464
- dirname: path.dirname(p),
1465
+ basename: nodePath.basename(p),
1466
+ dirname: nodePath.dirname(p),
1465
1467
  path: p,
1466
1468
  newDirs: [],
1467
1469
  error: null
@@ -1474,7 +1476,7 @@ function createNodeSys(c = {}) {
1474
1476
  return results;
1475
1477
  },
1476
1478
  createWorkerController(maxConcurrentWorkers) {
1477
- return new NodeWorkerController(path.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
1479
+ return new NodeWorkerController(nodePath.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
1478
1480
  },
1479
1481
  async destroy() {
1480
1482
  const waits = [];
@@ -1533,13 +1535,13 @@ function createNodeSys(c = {}) {
1533
1535
  onProcessInterrupt: (cb) => {
1534
1536
  if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
1535
1537
  },
1536
- platformPath: path,
1538
+ platformPath: nodePath,
1537
1539
  readDir(p) {
1538
1540
  return new Promise((resolve) => {
1539
1541
  fs.readdir(p, (err, files) => {
1540
1542
  if (err) resolve([]);
1541
1543
  else resolve(files.map((f) => {
1542
- return normalizePath(path.join(p, f));
1544
+ return normalizePath(nodePath.join(p, f));
1543
1545
  }));
1544
1546
  });
1545
1547
  });
@@ -1550,7 +1552,7 @@ function createNodeSys(c = {}) {
1550
1552
  readDirSync(p) {
1551
1553
  try {
1552
1554
  return fs.readdirSync(p).map((f) => {
1553
- return normalizePath(path.join(p, f));
1555
+ return normalizePath(nodePath.join(p, f));
1554
1556
  });
1555
1557
  } catch {}
1556
1558
  return [];
@@ -1627,8 +1629,8 @@ function createNodeSys(c = {}) {
1627
1629
  force: true
1628
1630
  }, (err) => {
1629
1631
  resolve({
1630
- basename: path.basename(p),
1631
- dirname: path.dirname(p),
1632
+ basename: nodePath.basename(p),
1633
+ dirname: nodePath.dirname(p),
1632
1634
  path: p,
1633
1635
  removedDirs: [],
1634
1636
  removedFiles: [],
@@ -1637,8 +1639,8 @@ function createNodeSys(c = {}) {
1637
1639
  });
1638
1640
  else fs.rmdir(p, (err) => {
1639
1641
  resolve({
1640
- basename: path.basename(p),
1641
- dirname: path.dirname(p),
1642
+ basename: nodePath.basename(p),
1643
+ dirname: nodePath.dirname(p),
1642
1644
  path: p,
1643
1645
  removedDirs: [],
1644
1646
  removedFiles: [],
@@ -1655,8 +1657,8 @@ function createNodeSys(c = {}) {
1655
1657
  });
1656
1658
  else fs.rmdirSync(p);
1657
1659
  return {
1658
- basename: path.basename(p),
1659
- dirname: path.dirname(p),
1660
+ basename: nodePath.basename(p),
1661
+ dirname: nodePath.dirname(p),
1660
1662
  path: p,
1661
1663
  removedDirs: [],
1662
1664
  removedFiles: [],
@@ -1664,8 +1666,8 @@ function createNodeSys(c = {}) {
1664
1666
  };
1665
1667
  } catch (e) {
1666
1668
  return {
1667
- basename: path.basename(p),
1668
- dirname: path.dirname(p),
1669
+ basename: nodePath.basename(p),
1670
+ dirname: nodePath.dirname(p),
1669
1671
  path: p,
1670
1672
  removedDirs: [],
1671
1673
  removedFiles: [],
@@ -1677,8 +1679,8 @@ function createNodeSys(c = {}) {
1677
1679
  return new Promise((resolve) => {
1678
1680
  fs.unlink(p, (err) => {
1679
1681
  resolve({
1680
- basename: path.basename(p),
1681
- dirname: path.dirname(p),
1682
+ basename: nodePath.basename(p),
1683
+ dirname: nodePath.dirname(p),
1682
1684
  path: p,
1683
1685
  error: err
1684
1686
  });
@@ -1687,8 +1689,8 @@ function createNodeSys(c = {}) {
1687
1689
  },
1688
1690
  removeFileSync(p) {
1689
1691
  const results = {
1690
- basename: path.basename(p),
1691
- dirname: path.dirname(p),
1692
+ basename: nodePath.basename(p),
1693
+ dirname: nodePath.dirname(p),
1692
1694
  path: p,
1693
1695
  error: null
1694
1696
  };
@@ -1763,7 +1765,7 @@ function createNodeSys(c = {}) {
1763
1765
  sys.watchFile = (filePath, callback) => {
1764
1766
  logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
1765
1767
  const normalizedPath = normalizePath(filePath);
1766
- const dirPath = path.dirname(filePath);
1768
+ const dirPath = nodePath.dirname(filePath);
1767
1769
  const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
1768
1770
  if (err) {
1769
1771
  logger?.error(`Watch error for ${filePath}: ${err.message}`);
@@ -10,6 +10,6 @@ var __exportAll = (all, no_symbols) => {
10
10
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
11
11
  return target;
12
12
  };
13
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
13
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
14
14
  //#endregion
15
15
  export { __require as n, __exportAll as t };