@model-w/preset-nuxt3 2023.4.0-beta.1 → 2023.7.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.
Files changed (2) hide show
  1. package/index.ts +12 -11
  2. package/package.json +4 -4
package/index.ts CHANGED
@@ -237,8 +237,12 @@ export function defineModelWConfig(
237
237
  config.apiUrl ||
238
238
  env.get({ name: "NUXT_API_URL", buildDefault: "http://localhost" });
239
239
 
240
- const proxyTarget = config.apiUrl ||
241
- env.get({ name: "NUXT_PROXY_OPTIONS_TARGET", buildDefault: "http://localhost" });
240
+ const proxyTarget =
241
+ config.apiUrl ||
242
+ env.get({
243
+ name: "NUXT_PROXY_OPTIONS_TARGET",
244
+ buildDefault: "http://localhost",
245
+ });
242
246
  const backAlias = config.backAlias || "back";
243
247
  const cmsAlias = config.cmsAlias || "wubba-lubba-dub-dub";
244
248
 
@@ -250,7 +254,8 @@ export function defineModelWConfig(
250
254
  );
251
255
 
252
256
  const sentryDsn =
253
- config.sentryDsn || env.get({ name: "NUXT_PUBLIC_SENTRY_DSN", defaultValue: "" });
257
+ config.sentryDsn ||
258
+ env.get({ name: "NUXT_PUBLIC_SENTRY_DSN", defaultValue: "" });
254
259
  const sentryEnvironment =
255
260
  config.environment ||
256
261
  env.get({
@@ -258,7 +263,9 @@ export function defineModelWConfig(
258
263
  defaultValue: sentryDsn ? undefined : "",
259
264
  });
260
265
 
261
- const enableRuntimeTemplate = config.enableRuntimeTemplate !== false;
266
+ const vue: Extract<NuxtConfig, "vue"> = {
267
+ runtimeCompiler: config.enableRuntimeTemplate !== false,
268
+ };
262
269
 
263
270
  const generatedConfig: NuxtConfig = {
264
271
  app,
@@ -318,13 +325,7 @@ export function defineModelWConfig(
318
325
  ...(config.moduleConfig || []),
319
326
  ],
320
327
 
321
- ...(enableRuntimeTemplate
322
- ? {
323
- experimental: {
324
- runtimeVueCompiler: true,
325
- },
326
- }
327
- : {}),
328
+ vue,
328
329
  };
329
330
 
330
331
  return defineNuxtConfig(generatedConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@model-w/preset-nuxt3",
3
- "version": "2023.4.0-beta.1",
3
+ "version": "2023.7.2",
4
4
  "type": "module",
5
5
  "description": "Preset of Nuxt3 for ModelW",
6
6
  "license": "WTFPL",
@@ -41,10 +41,10 @@
41
41
  "@model-w/sentry": "1.x",
42
42
  "@vuelidate/core": "2.0.x",
43
43
  "@vuelidate/validators": "2.0.x",
44
- "nuxt": "3.4.x",
45
- "sass": "1.62.x",
44
+ "nuxt": "3.6.x",
45
+ "sass": "1.63.x",
46
46
  "vite-svg-loader": "4.0.x",
47
- "vue": "3.2.x"
47
+ "vue": "3.3.x"
48
48
  },
49
49
  "dependencies": {
50
50
  "defu": "^6.1.2"