@hubspot/cms-dev-server 1.2.33 → 1.2.34
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/app/index.html +2 -2
- package/dist/generateJsonFromJsx.js +3 -3
- package/dist/index.js +226 -130
- package/dist/internalSsr.js +6 -6
- package/dist/island-runtime.js +38 -23
- package/dist/run.js +315 -219
- package/dist/storybook/index.js +1 -1
- package/dist/storybook-main/main.js +10 -10
- package/package.json +5 -5
- package/types/lib/hsmetaUtils.d.ts +3 -0
- package/types/lib/renderModulePreview.d.ts +4 -1
- /package/dist/app/assets/{index-tvg7JxpD.js → index-BhmkOPU4.js} +0 -0
- /package/dist/app/assets/{index-PcyCbkys.css → index-CbQ-tZoN.css} +0 -0
package/dist/app/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>CMS React Dev Server Home</title>
|
|
7
7
|
<!--app-head-->
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-BhmkOPU4.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CbQ-tZoN.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"><!--app-html--></div>
|
|
@@ -10,7 +10,7 @@ import { createServer as createViteServer } from "vite";
|
|
|
10
10
|
import { createRequire } from "module";
|
|
11
11
|
import { default as react } from "@vitejs/plugin-react";
|
|
12
12
|
|
|
13
|
-
// ../cms-js-internal/dist/types-
|
|
13
|
+
// ../cms-js-internal/dist/types-BEz622C8.js
|
|
14
14
|
import path from "path";
|
|
15
15
|
var viteRoot;
|
|
16
16
|
var viteCommand;
|
|
@@ -31,7 +31,7 @@ function resolveIslandPlugin(islandsSet) {
|
|
|
31
31
|
idWithNoParam,
|
|
32
32
|
componentExtension
|
|
33
33
|
);
|
|
34
|
-
const modulePath =
|
|
34
|
+
const modulePath = path.relative(viteRoot, idWithNoParam);
|
|
35
35
|
const moduleId = (viteCommand === "serve" ? idWithNoParam : modulePath).concat("?client-entry");
|
|
36
36
|
if (islandsSet) {
|
|
37
37
|
islandsSet.add(moduleId);
|
|
@@ -620,7 +620,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
|
|
|
620
620
|
}),
|
|
621
621
|
clientIslandEntryPlugin(),
|
|
622
622
|
resolveIslandPlugin(),
|
|
623
|
-
|
|
623
|
+
viteCommonjs(),
|
|
624
624
|
devSecretsPlugin(secretNames),
|
|
625
625
|
noncePlaceholderPlugin()
|
|
626
626
|
] : [];
|