@creopse/bridge 0.1.16 → 0.1.17

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/dist/vite/vue.js +17 -17
  2. package/package.json +1 -1
package/dist/vite/vue.js CHANGED
@@ -1,9 +1,9 @@
1
- import { D as C, S as I, s as L } from "../index-C8b1StIO.js";
2
- import b from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
1
+ import { D as C, S as I, s as b } from "../index-C8b1StIO.js";
2
+ import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
3
3
  import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
4
4
  import { parse as M, stringify as O } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
5
5
  import P from "fs";
6
- import n from "path";
6
+ import i from "path";
7
7
  import V from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
8
8
  import N from "vite-plugin-auto-import-lite";
9
9
  import $ from "vite-plugin-i18next-loader";
@@ -17,22 +17,22 @@ function K(h = {}) {
17
17
  i18nLocalesPath: v,
18
18
  composablesDirs: _ = ["src/composables"],
19
19
  shared: y = []
20
- } = h, i = process.cwd(), t = n.resolve(i, A), E = process.env.APP_IS_PREVIEW === "true";
20
+ } = h, a = process.cwd(), t = i.resolve(a, A), E = process.env.APP_IS_PREVIEW === "true";
21
21
  let e;
22
- const a = {};
22
+ const s = {};
23
23
  let c = "creopse-plugin", m = "remoteEntry.js", u = 2160, f = 2161, d = !1;
24
24
  try {
25
25
  if (P.existsSync(t)) {
26
26
  const r = P.readFileSync(t, "utf-8");
27
27
  if (e = M(r || "{}"), e.pages && Array.isArray(e.pages))
28
28
  for (const p of e.pages)
29
- a[`./${p.name}`] = p.module;
29
+ s[`./${p.name}`] = p.module;
30
30
  const o = e.dashboard;
31
- o?.module && (a[`./${C}`] = o.module);
32
- const s = e.settings;
33
- s?.module && (a[`./${I}`] = s.module);
31
+ o?.module && (s[`./${C}`] = o.module);
32
+ const n = e.settings;
33
+ n?.module && (s[`./${I}`] = n.module), console.debug(s);
34
34
  const l = e.development;
35
- c = L(String(e.id)) || c, m = e.entry || m, u = l?.previewPort || u, f = l?.serverPort || f, d = l?.ssl || d;
35
+ c = b(String(e.id)) || c, m = e.entry || m, u = l?.previewPort || u, f = l?.serverPort || f, d = l?.ssl || d;
36
36
  } else
37
37
  console.warn(
38
38
  `[CreopseVuePlugin] Warning: Manifest not found at ${t}`
@@ -43,19 +43,19 @@ function K(h = {}) {
43
43
  r
44
44
  );
45
45
  }
46
- const S = v ? n.resolve(i, v) : n.resolve(i, g, "i18n/locales"), D = {
46
+ const S = v ? i.resolve(a, v) : i.resolve(a, g, "i18n/locales"), D = {
47
47
  name: "creopse-vue-plugin",
48
48
  config(r) {
49
- const o = r.root || i, s = n.resolve(o, w);
49
+ const o = r.root || a, n = i.resolve(o, w);
50
50
  return {
51
51
  envPrefix: "APP_",
52
52
  resolve: {
53
- alias: [{ find: "@", replacement: n.resolve(o, g) }],
53
+ alias: [{ find: "@", replacement: i.resolve(o, g) }],
54
54
  dedupe: ["vue"]
55
55
  },
56
56
  build: {
57
57
  target: "esnext",
58
- outDir: s,
58
+ outDir: n,
59
59
  assetsInlineLimit: 1 / 0,
60
60
  cssCodeSplit: !1,
61
61
  rollupOptions: {
@@ -64,7 +64,7 @@ function K(h = {}) {
64
64
  targets: [
65
65
  {
66
66
  src: t,
67
- dest: s,
67
+ dest: n,
68
68
  transform() {
69
69
  return e?.mode && (e.mode = E ? "development" : "production"), ((p) => p.replace(/(,)\s*\n/g, `,
70
70
 
@@ -104,10 +104,10 @@ function K(h = {}) {
104
104
  };
105
105
  return [
106
106
  j(),
107
- b({
107
+ L({
108
108
  name: c,
109
109
  filename: m,
110
- exposes: a,
110
+ exposes: s,
111
111
  shared: ["vue", "pinia", ...y]
112
112
  }),
113
113
  B({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@creopse/bridge",
3
3
  "description": "Creopse Bridge Toolkit",
4
- "version": "0.1.16",
4
+ "version": "0.1.17",
5
5
  "private": false,
6
6
  "author": "Noé Gnanih <noegnanih@gmail.com>",
7
7
  "license": "MIT",