dinou 3.0.2 → 3.0.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
+ ## [3.0.3]
9
+
10
+ ### Fixed
11
+
12
+ - esbuild: stabe chunk names plugin (windows).
13
+ - esbuild: assets plugin.
14
+
8
15
  ## [3.0.2]
9
16
 
10
17
  ### Fixed
@@ -78,6 +78,7 @@ export default function assetsPlugin({ include = regex } = {}) {
78
78
  if (!include.test(sourceFile)) continue;
79
79
 
80
80
  const ext = path.extname(sourceFile);
81
+ if (!oldRelPath.endsWith(ext)) continue;
81
82
  const base = path.basename(sourceFile, ext);
82
83
  const scoped = createScopedName(base, sourceFile);
83
84
  const newLocal = `assets/${scoped}${ext}`;
@@ -23,8 +23,12 @@ export default function stableChunkNamesAndMapsPlugin({ dev = true } = {}) {
23
23
  if (!sourceFile) continue;
24
24
  // Nombre estable basado en el archivo fuente (siempre igual)
25
25
  const rel = path.relative("src", sourceFile);
26
- const dir = path.dirname(rel);
27
- const base = path.basename(rel, path.extname(rel));
26
+ const normalizedRel = rel.replace(/\\/g, "/");
27
+ const dir = path.dirname(normalizedRel);
28
+ const base = path.basename(
29
+ normalizedRel,
30
+ path.extname(normalizedRel)
31
+ );
28
32
  const stableName =
29
33
  dir === "." ? base : `${dir.replace(/\//g, "-")}-${base}`;
30
34
  let finalName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dinou",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Dinou is a modern React 19 framework with React Server Components, Server Functions, and streaming SSR.",
5
5
  "main": "index.js",
6
6
  "bin": {