zova-vite 1.1.46 → 1.1.48

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 +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ function _collectCss(mods, styles = new Map(), checkedMods = new Set()) {
50
50
  _collectCss(mod.importedModules, styles, checkedMods);
51
51
  }
52
52
  });
53
- styles.forEach((content, id) => {
53
+ Array.from(styles.entries()).reverse().forEach(([id, content]) => {
54
54
  result = result.concat(`<style vite-css-module-id="${hashCode(id)}">${(content || '').replaceAll('\n', '')}</style>`);
55
55
  });
56
56
  return result;
@@ -404,7 +404,7 @@ function createConfigUtils(configMeta, configOptions) {
404
404
  for (const moduleName in modules) {
405
405
  const module = modules[moduleName];
406
406
  //
407
- let test = module.root;
407
+ let test = module.root.replace(/\\/g, '/');
408
408
  let index = test.indexOf(appDir);
409
409
  if (index > -1) {
410
410
  test = test.substring(index + appDir.length);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-vite",
3
- "version": "1.1.46",
4
- "gitHead": "b88abae0ef9cbe59388093d012c1193d5fa14175",
3
+ "version": "1.1.48",
4
+ "gitHead": "07074482abf76e38f9e3ccc3505f6d546e5c6f8d",
5
5
  "description": "zova vite",
6
6
  "keywords": [
7
7
  "framework",