@hubspot/cms-dev-server 1.0.38 → 1.0.44
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/.DS_Store +0 -0
- package/dist/generateJsonFromJsx.js +2 -2
- package/dist/index.js +118 -139
- package/dist/internalSsr.js +6 -185
- package/dist/island-runtime.js +1 -187
- package/dist/run.js +118 -139
- package/dist/storybook/index.js +1 -1
- package/dist/storybook-main/main.js +10 -193
- package/package.json +3 -4
- package/types/api/designmanager.d.ts +2 -2
- package/types/constants/errors.d.ts +5 -0
- package/types/createAppViteConfig.d.ts +2 -0
- package/types/lib/cli.d.ts +22 -0
- package/types/lib/cliUtils.d.ts +14 -0
- package/types/lib/constants.d.ts +1 -0
- package/types/routes/api.d.ts +2 -0
- package/types/routes/appServerApiRouteHandler.d.ts +5 -0
- package/types/routes/appServerRoutes.d.ts +5 -0
- package/types/storybook-main/preview.d.ts +9 -0
- package/types/lib/debugAuth.d.ts +0 -2
- package/types/lib/localComponentsLoader.d.ts +0 -2
- package/types/lib/viteAssetHandler.d.ts +0 -15
- package/types/plugins/hubspotStaticAssetPlugin.d.ts +0 -2
- package/types/plugins/remoteAssetsPlugin.d.ts +0 -7
- package/types/plugins/requestSigningPlugin.d.ts +0 -6
package/dist/.DS_Store
CHANGED
|
Binary file
|
|
@@ -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-Bqf9htWu.js
|
|
14
14
|
import path from "path";
|
|
15
15
|
var viteRoot;
|
|
16
16
|
var viteCommand;
|
|
@@ -586,7 +586,7 @@ Custom origin: ${process.env.VITE_ORIGIN}
|
|
|
586
586
|
}
|
|
587
587
|
const origin = process.env.VITE_ORIGIN ?? (sslEnabled ? `https://hslocal.net:${port}` : `http://hslocal.net:${port}`);
|
|
588
588
|
const consumerDeps = getDepsForPackageIfExists(webRoot);
|
|
589
|
-
const isProjectWithReact = consumerDeps.includes("@hubspot/cms-components");
|
|
589
|
+
const isProjectWithReact = consumerDeps.includes("@hubspot/cms-components") || process.env.TRANSLATE_ASSET;
|
|
590
590
|
const componentsShimPlugin = isProjectWithReact ? null : cmsComponentsShimPlugin();
|
|
591
591
|
const ssrAndOptimizeDep = isProjectWithReact ? {
|
|
592
592
|
ssr: {
|