@hitachivantara/app-shell-vite-plugin 1.8.0 → 1.8.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.
@@ -1,5 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { dirname, join } from "node:path";
3
+ import { normalizePath } from "vite";
3
4
  export const require = createRequire(import.meta.url);
4
5
  /**
5
6
  * Resolves the module entrypoint by name and normalizes slashes to be posix/unix-like forward slashes.
@@ -10,5 +11,5 @@ export const require = createRequire(import.meta.url);
10
11
  */
11
12
  export function resolveModule(moduleName, suffix) {
12
13
  const entrypoint = require.resolve(moduleName);
13
- return suffix ? join(dirname(entrypoint), suffix) : entrypoint;
14
+ return normalizePath(suffix ? join(dirname(entrypoint), suffix) : entrypoint);
14
15
  }
@@ -53,14 +53,9 @@ export function HvAppShellVitePlugin(opts = {}, env = {}) {
53
53
  viteStaticCopy({
54
54
  targets: [
55
55
  {
56
- src: resolveModule("es-module-shims", "*"),
56
+ src: resolveModule("es-module-shims"),
57
57
  dest: "bundles",
58
58
  },
59
- // copy the ui kit icons' sprites to the "icons" folder
60
- {
61
- src: resolveModule("@hitachivantara/uikit-react-icons", "../sprites/*.svg"),
62
- dest: "icons",
63
- },
64
59
  ...(!devMode && buildEntryPoint
65
60
  ? [
66
61
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/app-shell-vite-plugin",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "author": "Hitachi Vantara UI Kit Team",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@emotion/cache": "^11.11.0",
22
22
  "@emotion/react": "^11.11.1",
23
- "@hitachivantara/app-shell-shared": "^1.5.10",
24
- "@hitachivantara/app-shell-ui": "^1.11.0",
25
- "@hitachivantara/uikit-react-icons": "^5.16.0",
26
- "@hitachivantara/uikit-react-shared": "^5.5.0",
23
+ "@hitachivantara/app-shell-shared": "^1.5.12",
24
+ "@hitachivantara/app-shell-ui": "^1.11.2",
25
+ "@hitachivantara/uikit-react-icons": "^5.16.2",
26
+ "@hitachivantara/uikit-react-shared": "^5.5.2",
27
27
  "@rollup/plugin-commonjs": "^25.0.7",
28
28
  "@rollup/plugin-json": "^6.0.0",
29
29
  "@rollup/plugin-node-resolve": "^15.0.1",
@@ -58,5 +58,5 @@
58
58
  },
59
59
  "./package.json": "./package.json"
60
60
  },
61
- "gitHead": "acfc9b4224682aaebdf1c171e80eb1bfc2632a47"
61
+ "gitHead": "ac709f3b46b8b62ea3fccfa689983b5a9b72c4ec"
62
62
  }