@monkeyplus/flow 5.0.0-beta.8 → 5.0.0-beta.9

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/index.mjs CHANGED
@@ -27,7 +27,7 @@ import { isExternal as isExternal$1, ExternalsDefaults } from 'externality';
27
27
  import { createHash } from 'node:crypto';
28
28
  import MagicString from 'magic-string';
29
29
 
30
- const version = "5.0.0-beta.8";
30
+ const version = "5.0.0-beta.9";
31
31
 
32
32
  let _distDir = dirname(fileURLToPath(import.meta.url));
33
33
  if (_distDir.endsWith("chunks"))
@@ -1258,6 +1258,7 @@ async function bundleVite(flow) {
1258
1258
  nuxt: flow,
1259
1259
  flow,
1260
1260
  config: vite.mergeConfig({
1261
+ mode: flow.options.dev ? "development" : void 0,
1261
1262
  resolve: {
1262
1263
  alias: {
1263
1264
  ...flow.options.alias,
@@ -1304,6 +1305,8 @@ async function bundleVite(flow) {
1304
1305
  }
1305
1306
  }, flow.options.vite)
1306
1307
  };
1308
+ if (flow.options.dev)
1309
+ ctx.config.mode = process.env.NODE_ENV || "development";
1307
1310
  await flow.callHook("vite:extend", ctx);
1308
1311
  flow.hook("vite:serverCreated", (server) => {
1309
1312
  ctx.nuxt.hook("app:templatesGenerated", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "5.0.0-beta.8",
3
+ "version": "5.0.0-beta.9",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,9 +14,9 @@
14
14
  "flow": "./bin/flow.mjs"
15
15
  },
16
16
  "dependencies": {
17
- "@monkeyplus/flow-cli": "5.0.0-beta.8",
18
- "@monkeyplus/flow-kit": "5.0.0-beta.8",
19
- "@monkeyplus/flow-schema": "5.0.0-beta.8",
17
+ "@monkeyplus/flow-cli": "5.0.0-beta.9",
18
+ "@monkeyplus/flow-kit": "5.0.0-beta.9",
19
+ "@monkeyplus/flow-schema": "5.0.0-beta.9",
20
20
  "@nuxt/vite-builder": "3.0.0-rc.1",
21
21
  "@rollup/plugin-replace": "^4.0.0",
22
22
  "@vueuse/head": "^0.7.6",
@@ -22,6 +22,7 @@ export async function bundleVite(flow: Flow) {
22
22
  nuxt: flow,
23
23
  flow,
24
24
  config: vite.mergeConfig({
25
+ mode: flow.options.dev ? 'development' : undefined,
25
26
  resolve: {
26
27
  alias: {
27
28
  ...flow.options.alias,
@@ -71,6 +72,9 @@ export async function bundleVite(flow: Flow) {
71
72
  },
72
73
  }, flow.options.vite),
73
74
  };
75
+ if (flow.options.dev)
76
+ ctx.config.mode = process.env.NODE_ENV || 'development';
77
+
74
78
  await flow.callHook('vite:extend', ctx);
75
79
 
76
80
  flow.hook('vite:serverCreated', (server: vite.ViteDevServer) => {