@sitecore-jss/sitecore-jss-rendering-host 22.9.0-canary.15 → 22.9.0-canary.16
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/dist/cjs/devServer.js +2 -4
- package/dist/esm/devServer.js +2 -4
- package/package.json +3 -3
package/dist/cjs/devServer.js
CHANGED
|
@@ -5,9 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.startDevServer = startDevServer;
|
|
7
7
|
const del_1 = require("del");
|
|
8
|
-
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
const opn_1 = __importDefault(require("opn"));
|
|
8
|
+
const open_1 = __importDefault(require("open"));
|
|
11
9
|
const path_1 = __importDefault(require("path"));
|
|
12
10
|
const webpack_1 = __importDefault(require("webpack"));
|
|
13
11
|
const webpack_dev_server_1 = __importDefault(require("webpack-dev-server"));
|
|
@@ -65,7 +63,7 @@ function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifactsPath
|
|
|
65
63
|
compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
|
|
66
64
|
if (!browserOpened) {
|
|
67
65
|
console.log('opening browser', stats.compilation.compiler.name);
|
|
68
|
-
(0,
|
|
66
|
+
(0, open_1.default)(urlToOpenOnStart).then(() => {
|
|
69
67
|
browserOpened = true;
|
|
70
68
|
});
|
|
71
69
|
}
|
package/dist/esm/devServer.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { deleteSync as delSync } from 'del';
|
|
2
|
-
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import openBrowser from 'opn';
|
|
2
|
+
import open from 'open';
|
|
5
3
|
import path from 'path';
|
|
6
4
|
import webpack from 'webpack';
|
|
7
5
|
import WebpackDevServer from 'webpack-dev-server';
|
|
@@ -59,7 +57,7 @@ export function startDevServer({ port = 0, tunnelUrl, configFactory, buildArtifa
|
|
|
59
57
|
compiler.compilers[compiler.compilers.length - 1].hooks.done.tap('OpenBrowserAfterCompilationPlugin', (stats) => {
|
|
60
58
|
if (!browserOpened) {
|
|
61
59
|
console.log('opening browser', stats.compilation.compiler.name);
|
|
62
|
-
|
|
60
|
+
open(urlToOpenOnStart).then(() => {
|
|
63
61
|
browserOpened = true;
|
|
64
62
|
});
|
|
65
63
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-rendering-host",
|
|
3
|
-
"version": "22.9.0-canary.
|
|
3
|
+
"version": "22.9.0-canary.16",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"express": "^5.1.0",
|
|
32
32
|
"import-fresh": "^3.3.1",
|
|
33
33
|
"ngrok": "^4.3.3",
|
|
34
|
-
"
|
|
34
|
+
"open": "^8.4.2",
|
|
35
35
|
"webpack": "5.101.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"types",
|
|
68
68
|
"/global.d.ts"
|
|
69
69
|
],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "df5c5387af1f0af0f9868078c6f46673bba86b2f"
|
|
71
71
|
}
|