@embeddable.com/sdk-react 3.1.0 → 3.1.1-next.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/lib/index.js CHANGED
@@ -1086,7 +1086,9 @@ async function runViteBuild(ctx, watch = null) {
1086
1086
  },
1087
1087
  outDir: path__namespace.resolve(ctx.client.buildDir, ctx["sdk-react"].outputOptions.buildName),
1088
1088
  },
1089
- define: { "process.env.NODE_ENV": '"production"' },
1089
+ define: {
1090
+ "process.env.NODE_ENV": `${watch ? '"development"' : '"production"'}`,
1091
+ },
1090
1092
  });
1091
1093
  }
1092
1094
  async function runViteWatch(ctx) {