vite_ruby 3.10.1 → 3.10.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faf4eda30a8b4524a60b7d722801f7237328c3dcf75f0527607162e03eb32e2e
4
- data.tar.gz: 6c1c34e1543a8698ff49aa211e60b2062cb7087473e9a2d823f333604164368f
3
+ metadata.gz: 52b419f382add7a0b9e770508e0de2b9638ac04f2ac59a1864d34f77e32badd3
4
+ data.tar.gz: 23c8c09217c63a4805a77a06557ea77cad59bf42c0bc0005474c93b9904c3953
5
5
  SHA512:
6
- metadata.gz: f6b48ee82918e4c2b3ed1e68e64f3e56a8d19ea18a1ca825f97dc2bb23fdf4b74773c8bfefcbd01e46ea10457ade28ecd229d92383b9440d4cbd04dd379b21a9
7
- data.tar.gz: c8fc30323911fad3140ccfe7e22606e7c8654b1ae182604335a3527993080d8b6e08d3dad46983557952a35d0c7270b448accd174ca99a04e3ab1829fcaefe57
6
+ metadata.gz: 7cc569bf315f76cbbad4cf094e3a70497f5e1b650ac50b6e0a065423c87d94f1a612ef9ae7c95bd98ec59177659aaf0e125d3c4dc03f5232897bca7fd981abd2
7
+ data.tar.gz: 7be90c92960550713e350cafbd12e1cc297b0a9006f914a33873db2d23b57f3a75eb10adde901181269fbd17f4db3a2bbbbc1d37517b8e9db1de918ee6735d26
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [3.10.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.10.1...vite_ruby@3.10.2) (2026-03-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ensure imported CSS is resolved recursively (close [#600](https://github.com/ElMassimo/vite_ruby/issues/600)) ([#601](https://github.com/ElMassimo/vite_ruby/issues/601)) ([de4f4a0](https://github.com/ElMassimo/vite_ruby/commit/de4f4a0d0d80990dd73ade74ac40b1e7abdf40b6))
7
+
8
+
9
+
1
10
  ## [3.10.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.10.0...vite_ruby@3.10.1) (2026-03-25)
2
11
 
3
12
 
@@ -22,13 +22,30 @@ class ViteRuby::Manifest
22
22
  lookup!(name, **options).fetch("file")
23
23
  end
24
24
 
25
+ # Internal: Recursively collects all imported chunks for a given entry.
26
+ # Returns chunks in dependency-first order (deepest imports first), deduped.
27
+ def import_chunks_for(entry, seen_filenames: Set.new)
28
+ chunks = []
29
+
30
+ entry["imports"]&.each do |chunk|
31
+ filename = chunk["file"]
32
+ next if seen_filenames.include?(filename)
33
+ seen_filenames.add(filename)
34
+
35
+ chunks.concat(import_chunks_for(chunk, seen_filenames: seen_filenames))
36
+ chunks << chunk
37
+ end
38
+
39
+ chunks
40
+ end
41
+
25
42
  # Public: Returns scripts, imported modules, and stylesheets for the specified
26
43
  # entrypoint files.
27
44
  def resolve_entries(*names, **options)
28
45
  entries = names.map { |name| lookup!(name, **options) }
29
46
  script_paths = entries.map { |entry| entry.fetch("file") }
30
47
 
31
- imports = dev_server_running? ? [] : entries.flat_map { |entry| entry["imports"] }.compact
48
+ imports = dev_server_running? ? [] : entries.flat_map { |entry| import_chunks_for(entry) }
32
49
  {
33
50
  scripts: script_paths,
34
51
  imports: imports.filter_map { |entry| entry.fetch("file") }.uniq,
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = "3.10.1"
4
+ VERSION = "3.10.2"
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = "^8.0.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.1
4
+ version: 3.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
@@ -234,8 +234,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
234
234
  licenses:
235
235
  - MIT
236
236
  metadata:
237
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.10.1/vite_ruby
238
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.10.1/vite_ruby/CHANGELOG.md
237
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.10.2/vite_ruby
238
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.10.2/vite_ruby/CHANGELOG.md
239
239
  rubygems_mfa_required: 'true'
240
240
  post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
241
241
  manually, please run:\n\tbundle exec vite upgrade"