@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.
@@ -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-tvg7JxpD.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-PcyCbkys.css">
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-BsFs0N9P.js
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 = idWithNoParam.replace(`${viteRoot}/`, "");
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
- jsRenderingGates.includes("CMS:JSRenderer:RemoveCjsPlugin") ? null : viteCommonjs(),
623
+ viteCommonjs(),
624
624
  devSecretsPlugin(secretNames),
625
625
  noncePlaceholderPlugin()
626
626
  ] : [];