@pinegrow/nuxt-module 3.0.27 → 3.0.29

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/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.1.0"
6
6
  },
7
- "version": "3.0.27"
7
+ "version": "3.0.29"
8
8
  }
package/dist/module.mjs CHANGED
@@ -11,12 +11,56 @@ const module = defineNuxtModule({
11
11
  try {
12
12
  const { liveDesigner } = await import('./chunks/live-designer.mjs');
13
13
  const nitroApp = useNitro();
14
+ const filterConfig = (config) => {
15
+ const {
16
+ dir,
17
+ components,
18
+ rootDir,
19
+ srcDir,
20
+ css,
21
+ appDir,
22
+ analyzeDir,
23
+ serverDir,
24
+ modulesDir,
25
+ workspaceDir,
26
+ buildDir,
27
+ ignore,
28
+ ignorePrefix
29
+ } = config;
30
+ return {
31
+ dir,
32
+ components,
33
+ rootDir,
34
+ srcDir,
35
+ css,
36
+ appDir,
37
+ analyzeDir,
38
+ serverDir,
39
+ modulesDir,
40
+ workspaceDir,
41
+ buildDir,
42
+ ignore,
43
+ ignorePrefix
44
+ };
45
+ };
14
46
  pluginInstance = liveDesigner({
15
47
  ...moduleOptions.liveDesigner,
16
48
  listenerServer,
17
49
  nuxtInstance,
18
50
  nitroApp,
19
- listener
51
+ listener,
52
+ additionalConfig: {
53
+ ...filterConfig(nuxtInstance.options),
54
+ layers: nuxtInstance.options._layers.map((layer) => {
55
+ const { config, cwd, configFile } = layer;
56
+ return {
57
+ cwd,
58
+ configFile,
59
+ //@ts-ignore
60
+ config: filterConfig(config)
61
+ };
62
+ })
63
+ }
20
64
  });
21
65
  addVitePlugin(pluginInstance);
22
66
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/nuxt-module",
3
- "version": "3.0.27",
3
+ "version": "3.0.29",
4
4
  "description": "Pinegrow Nuxt Module",
5
5
  "author": "Pinegrow (http://pinegrow.com/)",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@nuxt/kit": "latest",
45
- "@pinegrow/vite-plugin": "3.0.27"
45
+ "@pinegrow/vite-plugin": "3.0.29"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@nuxt/module-builder": "latest",