Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: bundle esm dependencies in templates (#2479)

Bogdan Chadkin19d9d71cbd61
diff --git a/fixtures/webstudio-custom-template/remix.config.js b/fixtures/webstudio-custom-template/remix.config.js
index 27ccfeb986..eef40f6409 100644
--- a/fixtures/webstudio-custom-template/remix.config.js
+++ b/fixtures/webstudio-custom-template/remix.config.js
@@ -6,6 +6,8 @@ module.exports = {
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
future: {
v2_errorBoundary: true,
diff --git a/fixtures/webstudio-remix-netlify-edge-functions/remix.config.js b/fixtures/webstudio-remix-netlify-edge-functions/remix.config.js
index a9b0a97c78..921dd0f726 100644
--- a/fixtures/webstudio-remix-netlify-edge-functions/remix.config.js
+++ b/fixtures/webstudio-remix-netlify-edge-functions/remix.config.js
@@ -9,6 +9,8 @@ const baseConfig =
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
};
diff --git a/fixtures/webstudio-remix-netlify-functions/remix.config.js b/fixtures/webstudio-remix-netlify-functions/remix.config.js
index e1e4801450..1e9a05497f 100644
--- a/fixtures/webstudio-remix-netlify-functions/remix.config.js
+++ b/fixtures/webstudio-remix-netlify-functions/remix.config.js
@@ -17,6 +17,8 @@ module.exports = {
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
future: {
v2_errorBoundary: true,
diff --git a/fixtures/webstudio-remix-vercel/remix.config.js b/fixtures/webstudio-remix-vercel/remix.config.js
index 27ccfeb986..eef40f6409 100644
--- a/fixtures/webstudio-remix-vercel/remix.config.js
+++ b/fixtures/webstudio-remix-vercel/remix.config.js
@@ -6,6 +6,8 @@ module.exports = {
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
future: {
v2_errorBoundary: true,
diff --git a/packages/cli/templates/defaults/remix.config.js b/packages/cli/templates/defaults/remix.config.js
index 27ccfeb986..eef40f6409 100644
--- a/packages/cli/templates/defaults/remix.config.js
+++ b/packages/cli/templates/defaults/remix.config.js
@@ -6,6 +6,8 @@ module.exports = {
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
future: {
v2_errorBoundary: true,
diff --git a/packages/cli/templates/netlify-edge-functions/remix.config.js b/packages/cli/templates/netlify-edge-functions/remix.config.js
index a9b0a97c78..921dd0f726 100644
--- a/packages/cli/templates/netlify-edge-functions/remix.config.js
+++ b/packages/cli/templates/netlify-edge-functions/remix.config.js
@@ -9,6 +9,8 @@ const baseConfig =
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
};
diff --git a/packages/cli/templates/netlify-functions/remix.config.js b/packages/cli/templates/netlify-functions/remix.config.js
index e1e4801450..1e9a05497f 100644
--- a/packages/cli/templates/netlify-functions/remix.config.js
+++ b/packages/cli/templates/netlify-functions/remix.config.js
@@ -17,6 +17,8 @@ module.exports = {
/@webstudio-is\//,
"nanoid",
"@jsep-plugin/assignment",
+ "change-case",
+ "title-case",
],
future: {
v2_errorBoundary: true,