@stencil/core 5.0.0-alpha.15 → 5.0.0-alpha.17

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.
@@ -1597,7 +1597,12 @@ const hydrateScopedToShadow = () => {
1597
1597
  if (!win.document) return;
1598
1598
  const styleElements = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1599
1599
  let i = 0;
1600
- for (; i < styleElements.length; i++) registerStyle(styleElements[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styleElements[i].innerHTML), true);
1600
+ for (; i < styleElements.length; i++) {
1601
+ const scopeId = styleElements[i].getAttribute(HYDRATED_STYLE_ID);
1602
+ const existing = styles.get(scopeId);
1603
+ const allowCS = existing !== void 0 ? existing instanceof CSSStyleSheet : true;
1604
+ registerStyle(scopeId, convertScopedToShadow(styleElements[i].innerHTML), allowCS);
1605
+ }
1601
1606
  };
1602
1607
  //#endregion
1603
1608
  //#region src/utils/helpers.ts
@@ -4513,7 +4518,6 @@ const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
4513
4518
  };
4514
4519
  const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4515
4520
  const modulePath = hostElement.constructor.__stencil_module__;
4516
- console.log(`[Stencil HMR] hmrStandalone <${cmpMeta.$tagName$}> modulePath:`, modulePath);
4517
4521
  if (!modulePath) {
4518
4522
  console.warn(`[Stencil HMR] No __stencil_module__ on <${cmpMeta.$tagName$}> constructor - was this built with devMode?`);
4519
4523
  return;
@@ -4526,9 +4530,17 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4526
4530
  const NewClass = Object.values(newModule).find((v) => typeof v === "function" && v.is === cmpMeta.$tagName$) ?? newModule.default;
4527
4531
  if (!NewClass) return;
4528
4532
  const ctor = customElements.get(cmpMeta.$tagName$);
4529
- if (ctor) for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4530
- if (key === "constructor") continue;
4531
- Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4533
+ if (ctor) {
4534
+ for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4535
+ if (key === "constructor") continue;
4536
+ Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4537
+ }
4538
+ const styleDesc = Object.getOwnPropertyDescriptor(NewClass, "style");
4539
+ if (styleDesc) {
4540
+ Object.defineProperty(ctor, "style", styleDesc);
4541
+ const newStyle = NewClass.style;
4542
+ if (newStyle) registerStyle(getScopeId(cmpMeta), newStyle, !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation));
4543
+ }
4532
4544
  }
4533
4545
  document.querySelectorAll(cmpMeta.$tagName$).forEach((el) => {
4534
4546
  if (BUILD$1.hostListener) {
@@ -4548,7 +4560,9 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4548
4560
  //#endregion
4549
4561
  //#region src/runtime/bootstrap-standalone.ts
4550
4562
  const defineCustomElement = (Cstr, compactMeta) => {
4551
- customElements.define(transformTag(compactMeta[1]), proxyCustomElement(Cstr, compactMeta));
4563
+ const tag = transformTag(compactMeta[1]);
4564
+ const proxied = proxyCustomElement(Cstr, compactMeta);
4565
+ if (!customElements.get(tag)) customElements.define(tag, proxied);
4552
4566
  };
4553
4567
  const proxyCustomElement = (Cstr, compactMeta) => {
4554
4568
  if (BUILD$1.profile && performance.mark && performance.getEntriesByName("st:app:start", "mark").length === 0) performance.mark("st:app:start");
@@ -1468,7 +1468,12 @@ const hydrateScopedToShadow = () => {
1468
1468
  if (!win.document) return;
1469
1469
  const styleElements = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1470
1470
  let i = 0;
1471
- for (; i < styleElements.length; i++) registerStyle(styleElements[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styleElements[i].innerHTML), true);
1471
+ for (; i < styleElements.length; i++) {
1472
+ const scopeId = styleElements[i].getAttribute(HYDRATED_STYLE_ID);
1473
+ const existing = styles.get(scopeId);
1474
+ const allowCS = existing !== void 0 ? existing instanceof CSSStyleSheet : true;
1475
+ registerStyle(scopeId, convertScopedToShadow(styleElements[i].innerHTML), allowCS);
1476
+ }
1472
1477
  };
1473
1478
  //#endregion
1474
1479
  //#region src/utils/helpers.ts
@@ -4384,7 +4389,6 @@ const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
4384
4389
  };
4385
4390
  const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4386
4391
  const modulePath = hostElement.constructor.__stencil_module__;
4387
- console.log(`[Stencil HMR] hmrStandalone <${cmpMeta.$tagName$}> modulePath:`, modulePath);
4388
4392
  if (!modulePath) {
4389
4393
  console.warn(`[Stencil HMR] No __stencil_module__ on <${cmpMeta.$tagName$}> constructor - was this built with devMode?`);
4390
4394
  return;
@@ -4397,9 +4401,17 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4397
4401
  const NewClass = Object.values(newModule).find((v) => typeof v === "function" && v.is === cmpMeta.$tagName$) ?? newModule.default;
4398
4402
  if (!NewClass) return;
4399
4403
  const ctor = customElements.get(cmpMeta.$tagName$);
4400
- if (ctor) for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4401
- if (key === "constructor") continue;
4402
- Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4404
+ if (ctor) {
4405
+ for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4406
+ if (key === "constructor") continue;
4407
+ Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4408
+ }
4409
+ const styleDesc = Object.getOwnPropertyDescriptor(NewClass, "style");
4410
+ if (styleDesc) {
4411
+ Object.defineProperty(ctor, "style", styleDesc);
4412
+ const newStyle = NewClass.style;
4413
+ if (newStyle) registerStyle(getScopeId(cmpMeta), newStyle, !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation));
4414
+ }
4403
4415
  }
4404
4416
  document.querySelectorAll(cmpMeta.$tagName$).forEach((el) => {
4405
4417
  if (BUILD.hostListener) {
@@ -4419,7 +4431,9 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4419
4431
  //#endregion
4420
4432
  //#region src/runtime/bootstrap-standalone.ts
4421
4433
  const defineCustomElement = (Cstr, compactMeta) => {
4422
- customElements.define(transformTag(compactMeta[1]), proxyCustomElement(Cstr, compactMeta));
4434
+ const tag = transformTag(compactMeta[1]);
4435
+ const proxied = proxyCustomElement(Cstr, compactMeta);
4436
+ if (!customElements.get(tag)) customElements.define(tag, proxied);
4423
4437
  };
4424
4438
  const proxyCustomElement = (Cstr, compactMeta) => {
4425
4439
  if (BUILD.profile && performance.mark && performance.getEntriesByName("st:app:start", "mark").length === 0) performance.mark("st:app:start");
@@ -1245,7 +1245,12 @@ const hydrateScopedToShadow = () => {
1245
1245
  if (!win.document) return;
1246
1246
  const styleElements = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1247
1247
  let i = 0;
1248
- for (; i < styleElements.length; i++) registerStyle(styleElements[i].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styleElements[i].innerHTML), true);
1248
+ for (; i < styleElements.length; i++) {
1249
+ const scopeId = styleElements[i].getAttribute(HYDRATED_STYLE_ID);
1250
+ const existing = styles.get(scopeId);
1251
+ const allowCS = existing !== void 0 ? existing instanceof CSSStyleSheet : true;
1252
+ registerStyle(scopeId, convertScopedToShadow(styleElements[i].innerHTML), allowCS);
1253
+ }
1249
1254
  };
1250
1255
  //#endregion
1251
1256
  //#region src/utils/helpers.ts
@@ -4151,7 +4156,6 @@ const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
4151
4156
  };
4152
4157
  const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4153
4158
  const modulePath = hostElement.constructor.__stencil_module__;
4154
- console.log(`[Stencil HMR] hmrStandalone <${cmpMeta.$tagName$}> modulePath:`, modulePath);
4155
4159
  if (!modulePath) {
4156
4160
  console.warn(`[Stencil HMR] No __stencil_module__ on <${cmpMeta.$tagName$}> constructor - was this built with devMode?`);
4157
4161
  return;
@@ -4164,9 +4168,17 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4164
4168
  const NewClass = Object.values(newModule).find((v) => typeof v === "function" && v.is === cmpMeta.$tagName$) ?? newModule.default;
4165
4169
  if (!NewClass) return;
4166
4170
  const ctor = customElements.get(cmpMeta.$tagName$);
4167
- if (ctor) for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4168
- if (key === "constructor") continue;
4169
- Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4171
+ if (ctor) {
4172
+ for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
4173
+ if (key === "constructor") continue;
4174
+ Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
4175
+ }
4176
+ const styleDesc = Object.getOwnPropertyDescriptor(NewClass, "style");
4177
+ if (styleDesc) {
4178
+ Object.defineProperty(ctor, "style", styleDesc);
4179
+ const newStyle = NewClass.style;
4180
+ if (newStyle) registerStyle(getScopeId(cmpMeta), newStyle, !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation));
4181
+ }
4170
4182
  }
4171
4183
  document.querySelectorAll(cmpMeta.$tagName$).forEach((el) => {
4172
4184
  if (BUILD$1.hostListener) {
@@ -4186,7 +4198,9 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
4186
4198
  //#endregion
4187
4199
  //#region src/runtime/bootstrap-standalone.ts
4188
4200
  const defineCustomElement = (Cstr, compactMeta) => {
4189
- customElements.define(transformTag(compactMeta[1]), proxyCustomElement(Cstr, compactMeta));
4201
+ const tag = transformTag(compactMeta[1]);
4202
+ const proxied = proxyCustomElement(Cstr, compactMeta);
4203
+ if (!customElements.get(tag)) customElements.define(tag, proxied);
4190
4204
  };
4191
4205
  const proxyCustomElement = (Cstr, compactMeta) => {
4192
4206
  if (BUILD$1.profile && performance.mark && performance.getEntriesByName("st:app:start", "mark").length === 0) performance.mark("st:app:start");
@@ -74,7 +74,7 @@ const BUILD = {
74
74
  isDev: false,
75
75
  isTesting: false,
76
76
  hydrateServerSide: false,
77
- hydrateClientSide: false,
77
+ hydrateClientSide: true,
78
78
  lifecycleDOMEvents: false,
79
79
  lazyLoad: false,
80
80
  profile: false,
@@ -1,4 +1,4 @@
1
- import { ei as Logger, vr as CompilerSystem } from "../../index-vY35H18z.mjs";
1
+ import { ti as Logger, yr as CompilerSystem } from "../../index-F3IidHM1.mjs";
2
2
 
3
3
  //#region src/sys/node/logger/index.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-BSwezCWj.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-jFf98r0u.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-DFO3q3RZ.mjs";
2
- import { t as createNodeSys } from "../../node-BSwezCWj.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-CXWiPNlE.mjs";
2
+ import { t as createNodeSys } from "../../node-jFf98r0u.mjs";
3
3
  //#region src/sys/node/node-worker-thread.ts
4
4
  /**
5
5
  * Initialize a worker thread, setting up various machinery for managing
@@ -1,5 +1,5 @@
1
- import { $r as LogLevel, B as ComponentCompilerMeta, Br as Diagnostic, Dt as HostRef, E as CompilerCtx, Et as HostElement, Nt as Module, Rt as NewSpecPageOptions, Zn as Compiler, Zr as LoadConfigInit, a as BuildCtx, aa as ValidatedConfig, cn as RuntimeRef, ei as Logger, fa as RafCallback, ha as UserBuildConditionals, ia as UnvalidatedConfig, kr as Config, mt as ComponentRuntimeMeta, ni as LoggerTimeSpan, pn as SpecPage, ua as ErrorHandler, vr as CompilerSystem } from "../index-vY35H18z.mjs";
2
- import { a as h, b as Env, d as getMode, g as getElement, h as createEvent, i as Host, m as Fragment, o as forceUpdate, p as Mixin, s as getRenderingRef, v as getAssetPath, y as setAssetPath } from "../index-BvkyxSY6.mjs";
1
+ import { Ar as Config, B as ComponentCompilerMeta, Dt as HostRef, E as CompilerCtx, Et as HostElement, Nt as Module, Qn as Compiler, Qr as LoadConfigInit, Rt as NewSpecPageOptions, Vr as Diagnostic, a as BuildCtx, aa as UnvalidatedConfig, cn as RuntimeRef, da as ErrorHandler, ei as LogLevel, ga as UserBuildConditionals, mt as ComponentRuntimeMeta, oa as ValidatedConfig, pa as RafCallback, pn as SpecPage, ri as LoggerTimeSpan, ti as Logger, yr as CompilerSystem } from "../index-F3IidHM1.mjs";
2
+ import { a as h, b as Env, d as getMode, g as getElement, h as createEvent, i as Host, m as Fragment, o as forceUpdate, p as Mixin, s as getRenderingRef, v as getAssetPath, y as setAssetPath } from "../index-3fu7WQs4.mjs";
3
3
  import { Mock } from "vitest";
4
4
 
5
5
  //#region src/testing/testing-logger.d.ts
@@ -1,12 +1,12 @@
1
- import { A as HYDRATE_ID, C as setAssetPath, D as DEFAULT_DOC_DATA, F as reWireGetterSetter, M as STENCIL_DOC_DATA, P as getHostRef$1, S as getAssetPath, X as Env, Y as BUILD, _ as insertBefore, b as getElement, c as Fragment, g as getRenderingRef, h as forceUpdate, j as NODE_TYPE, k as HYDRATE_CHILD_ID, l as bootstrapLazy, m as h, p as Host, s as Mixin, u as getMode, v as renderVdom, y as createEvent } from "../client-aTQ7xHxx.mjs";
1
+ import { A as HYDRATE_ID, C as setAssetPath, D as DEFAULT_DOC_DATA, F as reWireGetterSetter, M as STENCIL_DOC_DATA, P as getHostRef$1, S as getAssetPath, X as Env, Y as BUILD, _ as insertBefore, b as getElement, c as Fragment, g as getRenderingRef, h as forceUpdate, j as NODE_TYPE, k as HYDRATE_CHILD_ID, l as bootstrapLazy, m as h, p as Host, s as Mixin, u as getMode, v as renderVdom, y as createEvent } from "../client-CgXNkftm.mjs";
2
2
  import { L as EVENT_FLAGS, h as noop, w as CMP_FLAGS } from "../regular-expression-CFVJOTUh.mjs";
3
- import { _ as getBuildFeatures, c as createWorkerContext, g as BuildContext, h as Cache, i as createSystem, o as loadConfig, p as createInMemoryFs, s as createCompiler } from "../compiler-DFO3q3RZ.mjs";
4
- import { wt as formatLazyBundleRuntimeMeta } from "../validation-CtaOJgnM.mjs";
5
- import { o as buildEvents } from "../node-BSwezCWj.mjs";
3
+ import { b as getBuildFeatures, c as createWorkerContext, h as Cache, i as createSystem, o as loadConfig, p as createInMemoryFs, s as createCompiler, v as BuildContext } from "../compiler-CXWiPNlE.mjs";
4
+ import { wt as formatLazyBundleRuntimeMeta } from "../validation-ByxKj8bC.mjs";
5
+ import { o as buildEvents } from "../node-jFf98r0u.mjs";
6
6
  import fs from "node:fs";
7
- import nodePath from "node:path";
7
+ import path from "node:path";
8
8
  import { fileURLToPath } from "node:url";
9
- import path from "path";
9
+ import path$1 from "path";
10
10
  import { MockWindow, setupGlobal } from "@stencil/mock-doc";
11
11
  import { createHash } from "crypto";
12
12
  import { afterAll, vi } from "vitest";
@@ -88,7 +88,7 @@ const createTestingSystem = () => {
88
88
  let diskReads = 0;
89
89
  let diskWrites = 0;
90
90
  const sys = createSystem();
91
- sys.platformPath = path;
91
+ sys.platformPath = path$1;
92
92
  sys.generateContentHash = (content, length) => {
93
93
  let hash = createHash("sha1").update(content).digest("hex").toLowerCase();
94
94
  if (typeof length === "number") hash = hash.slice(0, length);
@@ -264,7 +264,7 @@ const mockComponentMeta = (overrides = {}) => ({
264
264
  */
265
265
  function mockValidatedConfig(overrides = {}) {
266
266
  const baseConfig = mockConfig(overrides);
267
- const rootDir = nodePath.resolve("/");
267
+ const rootDir = path.resolve("/");
268
268
  return {
269
269
  ...baseConfig,
270
270
  cacheDir: ".stencil",
@@ -279,7 +279,7 @@ function mockValidatedConfig(overrides = {}) {
279
279
  minifyJs: false,
280
280
  namespace: "Testing",
281
281
  outputTargets: baseConfig.outputTargets ?? [],
282
- packageJsonFilePath: nodePath.join(rootDir, "package.json"),
282
+ packageJsonFilePath: path.join(rootDir, "package.json"),
283
283
  rootDir,
284
284
  sourceMap: true,
285
285
  srcDir: "/src",
@@ -300,7 +300,7 @@ function mockValidatedConfig(overrides = {}) {
300
300
  * @returns the mock Stencil configuration
301
301
  */
302
302
  function mockConfig(overrides = {}) {
303
- const rootDir = nodePath.resolve("/");
303
+ const rootDir = path.resolve("/");
304
304
  let { sys } = overrides;
305
305
  if (!sys) sys = createTestingSystem();
306
306
  sys.getCurrentDirectory = () => rootDir;
@@ -482,8 +482,8 @@ const mockModule = (mod = {}) => ({
482
482
  });
483
483
  //#endregion
484
484
  //#region src/testing/create-test-compiler.ts
485
- const __dirname = nodePath.dirname(fileURLToPath(import.meta.url));
486
- const TESTING_TSCONFIG = nodePath.resolve(__dirname, "fixtures/tsconfig.testing.json");
485
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
486
+ const TESTING_TSCONFIG = path.resolve(__dirname, "fixtures/tsconfig.testing.json");
487
487
  /**
488
488
  * Builds a patched sys that falls through to real disk for TypeScript lib files.
489
489
  *
@@ -538,7 +538,7 @@ const createPatchedSys = () => {
538
538
  return mem;
539
539
  }
540
540
  };
541
- sys.getCompilerExecutingPath = () => nodePath.resolve(__dirname, "../../dist/compiler/index.mjs");
541
+ sys.getCompilerExecutingPath = () => path.resolve(__dirname, "../../dist/compiler/index.mjs");
542
542
  return sys;
543
543
  };
544
544
  /**
@@ -634,7 +634,7 @@ const createTestCompiler = async (options = {}) => {
634
634
  ...tsconfigObj,
635
635
  include: [validatedConfig.srcDir]
636
636
  }));
637
- await compiler.fs.writeFile(nodePath.join(validatedConfig.srcDir, "components.d.ts"), "");
637
+ await compiler.fs.writeFile(path.join(validatedConfig.srcDir, "components.d.ts"), "");
638
638
  return {
639
639
  compiler,
640
640
  config: validatedConfig,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-z9aeyW2b.mjs";
2
2
  import { $ as VALID_CONFIG_OUTPUT_TARGETS, C as ASSETS, F as DOCS_README, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as COPY, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, T as COLLECTION, U as LOADER_BUNDLE, W as MEMBER_FLAGS, Y as STATS, _ as sortBy, b as toTitleCase, et as WATCH_FLAGS, i as flatOne, j as DIST_LAZY, k as CUSTOM, n as dashToPascalCase, p as isString, q as SSR_WASM, r as escapeWithPattern, u as isIterable, w as CMP_FLAGS, y as toDashCase, z as GLOBAL_STYLE } from "./regular-expression-CFVJOTUh.mjs";
3
- import nodePath, { basename, dirname, relative } from "node:path";
3
+ import path, { basename, dirname, relative } from "node:path";
4
4
  import picomatch from "picomatch";
5
5
  //#region src/utils/byte-size.ts
6
6
  /**
@@ -749,7 +749,7 @@ function relative$1(from, to) {
749
749
  * path. However, our algorithm does differ from that of Node's, as described in this function's JSDoc when a zero
750
750
  * length string is encountered.
751
751
  */
752
- return normalizePath(nodePath.relative(from, to), false);
752
+ return normalizePath(path.relative(from, to), false);
753
753
  }
754
754
  /**
755
755
  * A wrapped version of node.js' {@link path.join} which adds our custom
@@ -772,7 +772,7 @@ function join$1(...paths) {
772
772
  * Note that our algorithm does differ from Node's, as described in this function's JSDoc regarding trailing
773
773
  * slashes.
774
774
  */
775
- return normalizePath(nodePath.join(...paths), false);
775
+ return normalizePath(path.join(...paths), false);
776
776
  }
777
777
  /**
778
778
  * A wrapped version of node.js' {@link path.resolve} which adds our custom
@@ -789,7 +789,7 @@ function resolve$1(...paths) {
789
789
  * When normalizing, we should _not_ attempt to relativize the path returned by the native Node `resolve` method. When
790
790
  * calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
791
791
  */
792
- return normalizePath(nodePath.resolve(...paths), false);
792
+ return normalizePath(path.resolve(...paths), false);
793
793
  }
794
794
  /**
795
795
  * A wrapped version of node.js' {@link path.normalize} which adds our custom
@@ -806,7 +806,7 @@ function normalize(toNormalize) {
806
806
  * When normalizing, we should _not_ attempt to relativize the path returned by the native Node `normalize` method.
807
807
  * When calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
808
808
  */
809
- return normalizePath(nodePath.normalize(toNormalize), false);
809
+ return normalizePath(path.normalize(toNormalize), false);
810
810
  }
811
811
  //#endregion
812
812
  //#region src/utils/logger/logger-typescript.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-alpha.15",
3
+ "version": "5.0.0-alpha.17",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -121,9 +121,9 @@
121
121
  "terser": "^5.0.0",
122
122
  "tinyglobby": "^0.2.0",
123
123
  "typescript": ">4.0.0 <7.0.0",
124
- "@stencil/dev-server": "5.0.0-alpha.15",
125
- "@stencil/cli": "5.0.0-alpha.15",
126
- "@stencil/mock-doc": "5.0.0-alpha.15"
124
+ "@stencil/cli": "5.0.0-alpha.17",
125
+ "@stencil/dev-server": "5.0.0-alpha.17",
126
+ "@stencil/mock-doc": "5.0.0-alpha.17"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@ionic/prettier-config": "^4.0.0",