vite_rails_legacy 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf3942cf5b2c1298305f69e56f027c89624822259b54b6c9b922e33051c6a473
4
- data.tar.gz: f4c4b9e2512d62900d02e1c6777275023f1a7ec295c3352953142da98f9ede57
3
+ metadata.gz: 71a5c3315a379e4d0e970fa6391923fa4a528d1131f19b95ead5584628458550
4
+ data.tar.gz: 3cd45cafadc41a3b7a4d67d5c0a8b78a6e128746118611524441bcf3ef3c78c8
5
5
  SHA512:
6
- metadata.gz: 48f4459682922f42bd4f0808d3a89f97c181594468a5c7883463bf391ea7d2fc27bae3c13d0238ede925f6f2d7e33da3854f05f5e40e9bd178cd100894e88eac
7
- data.tar.gz: a00df5ab4e26305f0a6130d057d9b556bfdef646b05b0afc94ced6e11a6603d1bd0ebf820a37f807888b5e4505cb551918f606c5e0710a053bb315742d1ea00c
6
+ metadata.gz: c817e395280938cafe40590b7a6aed6eabd0e4a6534a614db3e848dc888f30728f7410d64e0585b8257e2a25b632c35f9b5ccc5ed0801ec7dea9450859d2a5b3
7
+ data.tar.gz: 601ee2092abecfb6d1c729ea9d2631f900e99f68c0aeb40077899afd285a721374b0350cadd467162cf6f352bf05dd6217fb32fc05eb17443dfd1ade41f4d593
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [2.0.9](https://github.com/ElMassimo/vite_ruby/compare/vite_rails_legacy@2.0.8...vite_rails_legacy@2.0.9) (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.8](https://github.com/ElMassimo/vite_ruby/compare/vite_rails_legacy@2.0.7...vite_rails_legacy@2.0.8) (2021-04-15)
2
11
 
3
12
 
@@ -9,6 +9,11 @@ module ViteRailsLegacy::TagHelpers
9
9
  "<script#{ tag_options({ src: src, type: 'module' }, escape: true) }></script>".html_safe
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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViteRailsLegacy
4
- VERSION = '2.0.8'
4
+ VERSION = '2.0.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_rails_legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
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-15 00:00:00.000000000 Z
11
+ date: 2021-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -61,8 +61,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
61
61
  licenses:
62
62
  - MIT
63
63
  metadata:
64
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails_legacy@2.0.8/vite_rails_legacy
65
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails_legacy@2.0.8/vite_rails_legacy/CHANGELOG.md
64
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_rails_legacy@2.0.9/vite_rails_legacy
65
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_rails_legacy@2.0.9/vite_rails_legacy/CHANGELOG.md
66
66
  post_install_message:
67
67
  rdoc_options: []
68
68
  require_paths: