vite_plugin_legacy 0.5.5 → 0.5.6

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: e6999d44214b380bafb3bac056067740e15fc6fdda110d2e252f515d3d40f5b7
4
- data.tar.gz: 593cdd9c5c7a649bbeec8a0a1a27a0e0f5422fab0fd1264c814a3917a5b63fcd
3
+ metadata.gz: 7886ed9f3f64eb4f35c3de8d577b81669cce75fbd64876100bc5dd66e311697d
4
+ data.tar.gz: b49a03f48c69d3c0d52cb4018ab0f46d96560063e80e35522c192cdd20e1eee3
5
5
  SHA512:
6
- metadata.gz: 741c3fae1dd20d881218c814e3c093069ee8c3172e63206bc7670ee74fa0555502e84e9c113fe387bb57c64a965d916895978a2b48c743758bf3e3795e5a3d0e
7
- data.tar.gz: f37953c54a4a7a2a46a9efb7bcf9c17115e789604929f0ae8b9acdbb4eb0e2c74d6881e7edcf6c960e6189053e577df62882e5bc5c69ce31a46b1b95a5a6642a
6
+ metadata.gz: f63fb9e57cc4b7136b68e908a952f84d26e2b309ee56adbbce3ea0d80ae004881081868beb1ae9d6f5fa6d754a60b0775c717b0a90df803fd864ff0d48836b90
7
+ data.tar.gz: 03c02a867432f89e628071b2ed1bdd3e5298fe77c6a92da8855ca548104101798b4f23474a3716de5e739128a12cd00774bf9b462c11c40aea1aa258af494fcf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## <small>0.5.6 (2021-07-19)</small>
2
+
3
+ * feat: Simplify implementation of legacy tag helper ([70bfac1](https://github.com/ElMassimo/vite_ruby/commit/70bfac1))
4
+
5
+
6
+
1
7
  ## [0.5.5](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.4...vite_plugin_legacy@0.5.5) (2021-03-18)
2
8
 
3
9
 
@@ -8,9 +8,8 @@ module VitePluginLegacy::TagHelpers
8
8
  return if ViteRuby.instance.dev_server_running?
9
9
 
10
10
  legacy_name = name.sub(/(\..+)|$/, '-legacy\1')
11
- id = "vite-#{ legacy_name.tr(' .\'', '-') }-entry"
12
- import_tag = content_tag(:script, nomodule: true, id: id, 'data-src': vite_asset_path(legacy_name, type: asset_type)) {
13
- "System.import(document.getElementById('#{ id }').getAttribute('data-src'))".html_safe
11
+ import_tag = content_tag(:script, nomodule: true) {
12
+ "System.import('#{ vite_asset_path(legacy_name, type: asset_type) }')".html_safe
14
13
  }
15
14
 
16
15
  safe_join [vite_legacy_polyfill_tag, import_tag]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VitePluginLegacy
4
- VERSION = '0.5.5'
4
+ VERSION = '0.5.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_plugin_legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
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-03-18 00:00:00.000000000 Z
11
+ date: 2021-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vite_ruby
@@ -42,8 +42,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
42
42
  licenses:
43
43
  - MIT
44
44
  metadata:
45
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@0.5.5/vite_plugin_legacy
46
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@0.5.5/vite_plugin_legacy/CHANGELOG.md
45
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@0.5.6/vite_plugin_legacy
46
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@0.5.6/vite_plugin_legacy/CHANGELOG.md
47
47
  post_install_message:
48
48
  rdoc_options: []
49
49
  require_paths: