vite_rails 2.0.9 → 2.0.10
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_rails/tag_helpers.rb +5 -0
- data/lib/vite_rails/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e31434004c6d618baf4a5e77f3c0dffd7d48271d74ffffb066b2974ce7123c45
|
|
4
|
+
data.tar.gz: b0af4abb6a6ab8da8cb94a1eb777573b08ae274cf8411692fce3a1dc4b02c73c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a95a0a352671cdb70e48e9662af9aa4be85825840812185c8fb5362b82b2e365b571a9c1fcf41a0deb6c40fad328035a16f25ee2280cb5e063f6872942388908
|
|
7
|
+
data.tar.gz: 8d47687979934033c777b1ccf2658fd8b1a9dd067e4ae09c7abe7ef1105e4f717c821c8f19db69b4e2875b659259d488f2b4830955764ff3e394623bfb1eb5f2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [2.0.10](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.9...vite_rails@2.0.10) (2021-04-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Add helpers to enable HMR when using @vitejs/plugin-react-refresh ([a80f286](https://github.com/ElMassimo/vite_ruby/commit/a80f286d4305bbae29ea7cea42a4329a530f43fa))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [2.0.9](https://github.com/ElMassimo/vite_ruby/compare/vite_rails@2.0.8...vite_rails@2.0.9) (2021-04-15)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -9,6 +9,11 @@ module ViteRails::TagHelpers
|
|
|
9
9
|
tag.script(src: src, type: 'module')
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
# Public: Renders a script tag to enable HMR with React Refresh.
|
|
13
|
+
def vite_react_refresh_tag
|
|
14
|
+
vite_manifest.react_refresh_preamble&.html_safe
|
|
15
|
+
end
|
|
16
|
+
|
|
12
17
|
# Public: Resolves the path for the specified Vite asset.
|
|
13
18
|
#
|
|
14
19
|
# Example:
|
data/lib/vite_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vite_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Máximo Mussini
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|
|
@@ -81,8 +81,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
|
81
81
|
licenses:
|
|
82
82
|
- MIT
|
|
83
83
|
metadata:
|
|
84
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.
|
|
85
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.
|
|
84
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails@2.0.10/vite_rails
|
|
85
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails@2.0.10/vite_rails/CHANGELOG.md
|
|
86
86
|
post_install_message:
|
|
87
87
|
rdoc_options: []
|
|
88
88
|
require_paths:
|