@brightspot/ui-builder 2.0.1 → 2.0.2

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.
@@ -66,6 +66,12 @@ export async function createBuildConfig({ builder }) {
66
66
  const autoPlugins = await loadAutoPlugins(cwd);
67
67
  const base = {
68
68
  root: cwd,
69
+ // Lib mode doesn't replace process.env.NODE_ENV; pin it so deps with dev
70
+ // guards don't crash with `process is not defined`. Dev path skips this —
71
+ // Vite's optimizeDeps/esbuild substitutes it there.
72
+ define: {
73
+ 'process.env.NODE_ENV': JSON.stringify('production'),
74
+ },
69
75
  plugins: [...autoPlugins],
70
76
  resolve: {
71
77
  preserveSymlinks: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspot/ui-builder",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Zero-config build toolkit for Brightspot CMS front-end development.",