nuxt-charts 2.0.0-beta.5 → 2.1.0-beta.0.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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3"
6
6
  },
7
- "version": "2.0.0-beta.5",
7
+ "version": "2.1.0-beta.0.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -9,7 +9,8 @@ const resolveComponents = (config, filePath) => {
9
9
  "BarChart",
10
10
  "DonutChart",
11
11
  "BubbleChart",
12
- "GanttChart"
12
+ "GanttChart",
13
+ "DualChart"
13
14
  ];
14
15
  allComponents.forEach((component) => {
15
16
  if (typeof component === "string") {
@@ -31,7 +32,7 @@ const resolveComponents = (config, filePath) => {
31
32
  };
32
33
 
33
34
  const resolveImports = (_, filePath) => {
34
- const allTypes = ["BulletLegendItemInterface"];
35
+ const allTypes = ["BulletLegendItemInterface", "MarkerConfig", "CrosshairConfig", "AxisConfig"];
35
36
  addImportsSources({
36
37
  from: filePath,
37
38
  type: true,
@@ -61,11 +62,18 @@ const module = defineNuxtModule({
61
62
  moduleDependencies: {},
62
63
  async setup(options, nuxt) {
63
64
  nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
64
- nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
65
- nuxt.options.vite.optimizeDeps.include = [
66
- "vue-chrts",
67
- ...nuxt.options.vite.optimizeDeps.include
68
- ];
65
+ const isDev = nuxt.options.dev;
66
+ if (isDev) {
67
+ nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
68
+ nuxt.options.vite.optimizeDeps.exclude = Array.from(
69
+ /* @__PURE__ */ new Set(["vue-chrts", ...nuxt.options.vite.optimizeDeps.exclude])
70
+ );
71
+ } else {
72
+ nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
73
+ nuxt.options.vite.optimizeDeps.include = Array.from(
74
+ /* @__PURE__ */ new Set(["vue-chrts", ...nuxt.options.vite.optimizeDeps.include])
75
+ );
76
+ }
69
77
  nuxt.options.build.transpile = [
70
78
  "vue-chrts",
71
79
  ...nuxt.options.build.transpile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-charts",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.1.0-beta.0.1",
4
4
  "description": "Nuxt module for vue-chrts",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@unovis/ts": "^1.6.2",
31
31
  "@unovis/vue": "^1.6.2",
32
- "vue-chrts": "2.0.0-beta.5"
32
+ "vue-chrts": "2.1.0-beta.0.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@nuxt/eslint": "^1.7.1",