@plumeria/vite-plugin 1.0.2 → 1.0.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 +3 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -165,12 +165,11 @@ export function plumeria(options = {}) {
165
165
  if (!generatedCSS) {
166
166
  return null;
167
167
  }
168
- const cssFilename = path
169
- .normalize(`${id.replace(EXTENSION_PATTERN, '')}.zero.css`)
170
- .replace(/\\/g, path.posix.sep);
168
+ const baseId = id.replace(EXTENSION_PATTERN, '');
169
+ const cssFilename = `${baseId}.zero.css`;
171
170
  const cssRelativePath = path
172
171
  .relative(config.root, cssFilename)
173
- .replace(/\\/g, path.posix.sep);
172
+ .replace(/\\/g, '/');
174
173
  const cssId = `/${cssRelativePath}`;
175
174
  cssLookup.set(cssFilename, generatedCSS);
176
175
  cssFileLookup.set(cssId, cssFilename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/vite-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Plumeria Vite plugin",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "dist/"
16
16
  ],
17
17
  "dependencies": {
18
- "@plumeria/utils": "^1.0.2"
18
+ "@plumeria/utils": "^1.0.4"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@swc/core": "1.15.2",