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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/vite_ruby/manifest.rb +18 -1
- data/lib/vite_ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52b419f382add7a0b9e770508e0de2b9638ac04f2ac59a1864d34f77e32badd3
|
|
4
|
+
data.tar.gz: 23c8c09217c63a4805a77a06557ea77cad59bf42c0bc0005474c93b9904c3953
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/vite_ruby/manifest.rb
CHANGED
|
@@ -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
|
|
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,
|
data/lib/vite_ruby/version.rb
CHANGED
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.
|
|
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.
|
|
238
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.10.
|
|
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"
|