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.
- package/dist/index.js +4 -1
- 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
|
-
|
|
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