@stencil/core 4.41.1 → 4.41.2-dev.1768799567.75e7562
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.
- package/cli/index.cjs +1 -18
- package/cli/index.js +1 -18
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +37 -11
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -19
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +199 -1826
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/shadow-css.js +3 -3
- package/internal/hydrate/index.js +5114 -5089
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +224 -241
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +10 -0
- package/internal/testing/index.js +98 -68
- package/internal/testing/jsx-dev-runtime.d.ts +2 -0
- package/internal/testing/jsx-dev-runtime.js +8 -0
- package/internal/testing/jsx-runtime.d.ts +2 -0
- package/internal/testing/jsx-runtime.js +9 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +3 -3
- package/mock-doc/index.js +3 -3
- package/mock-doc/package.json +1 -1
- package/package.json +13 -2
- package/screenshot/index.js +1 -18
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +28 -28
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +19 -1
- package/testing/package.json +1 -1
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System Worker v4.41.
|
|
2
|
+
Stencil Node System Worker v4.41.2-dev.1768799567.75e7562 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
|
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v4.41.
|
|
2
|
+
Stencil Testing v4.41.2-dev.1768799567.75e7562 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
@@ -4159,6 +4159,12 @@ var jestPreprocessor = {
|
|
|
4159
4159
|
if (tsCompilerOptions.paths) {
|
|
4160
4160
|
opts.paths = tsCompilerOptions.paths;
|
|
4161
4161
|
}
|
|
4162
|
+
if (tsCompilerOptions.jsx !== void 0) {
|
|
4163
|
+
opts.jsx = tsCompilerOptions.jsx;
|
|
4164
|
+
}
|
|
4165
|
+
if (tsCompilerOptions.jsxImportSource) {
|
|
4166
|
+
opts.jsxImportSource = "@stencil/core/internal/testing";
|
|
4167
|
+
}
|
|
4162
4168
|
}
|
|
4163
4169
|
const results = transpile(sourceText, opts);
|
|
4164
4170
|
const hasErrors = results.diagnostics.some((diagnostic) => diagnostic.level === "error");
|
|
@@ -5474,6 +5480,12 @@ var jestPreprocessor2 = {
|
|
|
5474
5480
|
if (tsCompilerOptions.paths) {
|
|
5475
5481
|
opts.paths = tsCompilerOptions.paths;
|
|
5476
5482
|
}
|
|
5483
|
+
if (tsCompilerOptions.jsx !== void 0) {
|
|
5484
|
+
opts.jsx = tsCompilerOptions.jsx;
|
|
5485
|
+
}
|
|
5486
|
+
if (tsCompilerOptions.jsxImportSource) {
|
|
5487
|
+
opts.jsxImportSource = "@stencil/core/internal/testing";
|
|
5488
|
+
}
|
|
5477
5489
|
}
|
|
5478
5490
|
const results = transpile(sourceText, opts);
|
|
5479
5491
|
const hasErrors = results.diagnostics.some((diagnostic) => diagnostic.level === "error");
|
|
@@ -6511,6 +6523,12 @@ var jestPreprocessor3 = {
|
|
|
6511
6523
|
if (tsCompilerOptions.paths) {
|
|
6512
6524
|
opts.paths = tsCompilerOptions.paths;
|
|
6513
6525
|
}
|
|
6526
|
+
if (tsCompilerOptions.jsx !== void 0) {
|
|
6527
|
+
opts.jsx = tsCompilerOptions.jsx;
|
|
6528
|
+
}
|
|
6529
|
+
if (tsCompilerOptions.jsxImportSource) {
|
|
6530
|
+
opts.jsxImportSource = "@stencil/core/internal/testing";
|
|
6531
|
+
}
|
|
6514
6532
|
}
|
|
6515
6533
|
const results = transpile(sourceText, opts);
|
|
6516
6534
|
const hasErrors = results.diagnostics.some((diagnostic) => diagnostic.level === "error");
|