@wdio/browser-runner 8.15.1 → 8.15.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stencil.d.ts","sourceRoot":"","sources":["../../../src/vite/frameworks/stencil.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,MAAM,CAAA;AAOhD,wBAAsB,gBAAgB,CAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,oBAEjG;AAED,wBAAsB,kBAAkB,CAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"stencil.d.ts","sourceRoot":"","sources":["../../../src/vite/frameworks/stencil.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAU,MAAM,MAAM,CAAA;AAOhD,wBAAsB,gBAAgB,CAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,oBAAoB,oBAEjG;AAED,wBAAsB,kBAAkB,CAAE,OAAO,EAAE,MAAM,yBAwBxD"}
|
|
@@ -11,14 +11,13 @@ export async function optimizeForStencil(rootDir) {
|
|
|
11
11
|
const stencilConfig = await import(path.join(rootDir, 'stencil.config.ts')).catch(() => ({ config: {} }));
|
|
12
12
|
const stencilPlugins = stencilConfig.config.plugins;
|
|
13
13
|
const stencilOptimizations = {
|
|
14
|
-
plugins: [await stencilVitePlugin(rootDir)]
|
|
14
|
+
plugins: [await stencilVitePlugin(rootDir)],
|
|
15
|
+
optimizeDeps: { include: [] }
|
|
15
16
|
};
|
|
16
17
|
if (stencilPlugins) {
|
|
17
18
|
const esbuildPlugin = stencilPlugins.find((plugin) => plugin.name === 'esbuild-plugin');
|
|
18
19
|
if (esbuildPlugin) {
|
|
19
|
-
stencilOptimizations.optimizeDeps
|
|
20
|
-
include: esbuildPlugin.options.include
|
|
21
|
-
};
|
|
20
|
+
stencilOptimizations.optimizeDeps?.include?.push(...esbuildPlugin.options.include);
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
@@ -26,7 +25,7 @@ export async function optimizeForStencil(rootDir) {
|
|
|
26
25
|
* module, in order to be able to use it in the browser we have to optimize it
|
|
27
26
|
* it to compile it to ESM
|
|
28
27
|
*/
|
|
29
|
-
stencilOptimizations.optimizeDeps?.include?.push('@stencil/core/internal/testing/index.js');
|
|
28
|
+
stencilOptimizations.optimizeDeps?.include?.push('@wdio/browser-runner/stencil > @stencil/core/internal/testing/index.js');
|
|
30
29
|
return stencilOptimizations;
|
|
31
30
|
}
|
|
32
31
|
async function stencilVitePlugin(rootDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browser-runner",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.2",
|
|
4
4
|
"description": "A WebdriverIO runner to run unit tests tests in the browser.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browser-runner",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"@types/ws": "^8.5.4",
|
|
75
75
|
"@wdio/runner": "8.15.0"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d123ee7129d2e5fc2427a8888408d7d967e015fe"
|
|
78
78
|
}
|