@hubspot/cms-dev-server 0.8.0 → 0.8.1
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/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { default as react } from "@vitejs/plugin-react";
|
|
|
6
6
|
import path, { basename } from "path";
|
|
7
7
|
var viteRoot;
|
|
8
8
|
var viteCommand;
|
|
9
|
-
function resolveIslandPlugin() {
|
|
9
|
+
function resolveIslandPlugin(islandsSet) {
|
|
10
10
|
return {
|
|
11
11
|
enforce: "pre",
|
|
12
12
|
name: "resolve-islands",
|
|
@@ -25,6 +25,9 @@ function resolveIslandPlugin() {
|
|
|
25
25
|
);
|
|
26
26
|
const modulePath = idWithNoParam.replace(`${viteRoot}/`, "");
|
|
27
27
|
const moduleId = (viteCommand === "serve" ? idWithNoParam : modulePath).concat("?client-entry");
|
|
28
|
+
if (islandsSet) {
|
|
29
|
+
islandsSet.add(moduleId);
|
|
30
|
+
}
|
|
28
31
|
return `
|
|
29
32
|
const moduleId = '${moduleId}';
|
|
30
33
|
|
package/dist/internalSsr.js
CHANGED
|
@@ -198,7 +198,7 @@ var createIslandsGlobalJsForClientInDev = (roots, perServerRequestData, viteDevS
|
|
|
198
198
|
};
|
|
199
199
|
var viteRoot;
|
|
200
200
|
var viteCommand;
|
|
201
|
-
function resolveIslandPlugin() {
|
|
201
|
+
function resolveIslandPlugin(islandsSet) {
|
|
202
202
|
return {
|
|
203
203
|
enforce: "pre",
|
|
204
204
|
name: "resolve-islands",
|
|
@@ -217,6 +217,9 @@ function resolveIslandPlugin() {
|
|
|
217
217
|
);
|
|
218
218
|
const modulePath = idWithNoParam.replace(`${viteRoot}/`, "");
|
|
219
219
|
const moduleId = (viteCommand === "serve" ? idWithNoParam : modulePath).concat("?client-entry");
|
|
220
|
+
if (islandsSet) {
|
|
221
|
+
islandsSet.add(moduleId);
|
|
222
|
+
}
|
|
220
223
|
return `
|
|
221
224
|
const moduleId = '${moduleId}';
|
|
222
225
|
|
package/dist/run.js
CHANGED
|
@@ -218,7 +218,7 @@ var createIslandsGlobalJsForClientInDev = (roots, perServerRequestData, viteDevS
|
|
|
218
218
|
};
|
|
219
219
|
var viteRoot;
|
|
220
220
|
var viteCommand;
|
|
221
|
-
function resolveIslandPlugin() {
|
|
221
|
+
function resolveIslandPlugin(islandsSet) {
|
|
222
222
|
return {
|
|
223
223
|
enforce: "pre",
|
|
224
224
|
name: "resolve-islands",
|
|
@@ -237,6 +237,9 @@ function resolveIslandPlugin() {
|
|
|
237
237
|
);
|
|
238
238
|
const modulePath = idWithNoParam.replace(`${viteRoot}/`, "");
|
|
239
239
|
const moduleId = (viteCommand === "serve" ? idWithNoParam : modulePath).concat("?client-entry");
|
|
240
|
+
if (islandsSet) {
|
|
241
|
+
islandsSet.add(moduleId);
|
|
242
|
+
}
|
|
240
243
|
return `
|
|
241
244
|
const moduleId = '${moduleId}';
|
|
242
245
|
|
|
@@ -125,7 +125,7 @@ function getPerServerRequestUrls(perServerRequestData, viteDevServer) {
|
|
|
125
125
|
});
|
|
126
126
|
return perServerRequestDataWithUrls;
|
|
127
127
|
}
|
|
128
|
-
function resolveIslandPlugin() {
|
|
128
|
+
function resolveIslandPlugin(islandsSet) {
|
|
129
129
|
return {
|
|
130
130
|
enforce: "pre",
|
|
131
131
|
name: "resolve-islands",
|
|
@@ -144,6 +144,9 @@ function resolveIslandPlugin() {
|
|
|
144
144
|
);
|
|
145
145
|
const modulePath = idWithNoParam.replace(`${viteRoot}/`, "");
|
|
146
146
|
const moduleId = (viteCommand === "serve" ? idWithNoParam : modulePath).concat("?client-entry");
|
|
147
|
+
if (islandsSet) {
|
|
148
|
+
islandsSet.add(moduleId);
|
|
149
|
+
}
|
|
147
150
|
return `
|
|
148
151
|
const moduleId = '${moduleId}';
|
|
149
152
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cms-dev-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@hubspot/cli-lib": "^3.0.12",
|
|
28
|
-
"@hubspot/cms-components": "^0.8.
|
|
28
|
+
"@hubspot/cms-components": "^0.8.1",
|
|
29
29
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
30
30
|
"@storybook/addon-actions": "7.0.7",
|
|
31
31
|
"@storybook/addon-essentials": "7.0.7",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"publishConfig": {
|
|
101
101
|
"access": "public"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "04a7200e723321f2179d2487979aa32f9b6690c6"
|
|
104
104
|
}
|
|
Binary file
|