zova-vite 1.1.3 → 1.1.4

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/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -141,7 +141,10 @@ function getAbsolutePathOfModule(id, postfix = 'index.js') {
141
141
  const require = createRequire(import.meta.url);
142
142
  let modulePath = require.resolve(id);
143
143
  if (postfix) {
144
- const pos = modulePath.lastIndexOf(postfix);
144
+ let pos = modulePath.lastIndexOf(postfix);
145
+ if (pos === -1) {
146
+ pos = modulePath.lastIndexOf(postfix.replaceAll('/', '\\'));
147
+ }
145
148
  if (pos > -1) {
146
149
  modulePath = modulePath.substring(0, modulePath.length - postfix.length - 1);
147
150
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-vite",
3
- "version": "1.1.3",
4
- "gitHead": "a5370955fbbee797795ebb1dca6f5a733bce6c28",
3
+ "version": "1.1.4",
4
+ "gitHead": "4a22df075710880fd1479f2504f66ed230635eb4",
5
5
  "description": "zova vite",
6
6
  "keywords": [
7
7
  "framework",