vite_plugin_legacy 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/vite_plugin_legacy/tag_helpers.rb +2 -2
- data/lib/vite_plugin_legacy/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: b39b9dd768dddab13d6caf3b7cac4f1fa31166e3828c7df1ff6d47e2fcf52e1e
|
4
|
+
data.tar.gz: 016e5967ade0328d2896c1962a819b72db4f807357a5d68a09c9bf1833ac04e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7699e732718da9dbb7a9e469900129b1079ffded95860c3d4a8f0d494eb40564f69548a49d8bfc59fcda1c9b6696878e763453b17d149b4a30fa1a3bfb63bb9c
|
7
|
+
data.tar.gz: 0165a2ef8d947a4c76427ec7b39b570ce99a76233754a73a3f1fc2d0d5a3d7da68fc786d588a34364eb5505e2b1bb75ca77d1ccea14087c0aad6ea25a24df3cc
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## [0.5.1](https://github.com/ElMassimo/vite_ruby/compare/vite_plugin_legacy@0.5.0...vite_plugin_legacy@0.5.1) (2021-03-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Testing leftovers accidentally disabled nomodules ([39f66f4](https://github.com/ElMassimo/vite_ruby/commit/39f66f413237cb1fe063f767f645c1c1be43653c))
|
7
|
+
|
8
|
+
|
9
|
+
|
1
10
|
# 0.5.0 (2021-03-05)
|
2
11
|
|
3
12
|
|
@@ -9,7 +9,7 @@ module VitePluginLegacy::TagHelpers
|
|
9
9
|
|
10
10
|
legacy_name = name.sub(/\.|$/, '-legacy\1')
|
11
11
|
id = "vite-#{ legacy_name.tr(' .\'', '-') }-entry"
|
12
|
-
import_tag = content_tag(:script, nomodule:
|
12
|
+
import_tag = content_tag(:script, nomodule: true, id: id, 'data-src': vite_asset_path(legacy_name, type: asset_type)) {
|
13
13
|
"System.import(document.getElementById('#{ id }').getAttribute('data-src'))".html_safe
|
14
14
|
}
|
15
15
|
|
@@ -23,6 +23,6 @@ module VitePluginLegacy::TagHelpers
|
|
23
23
|
|
24
24
|
name = vite_manifest.send(:manifest).keys.find { |file| file.include?('legacy-polyfills') } ||
|
25
25
|
raise(ArgumentError, 'Vite legacy polyfill not found in manifest.json')
|
26
|
-
content_tag(:script, nil, nomodule:
|
26
|
+
content_tag(:script, nil, nomodule: true, src: vite_asset_path(name))
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vite_plugin_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Máximo Mussini
|
@@ -98,8 +98,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
|
|
98
98
|
licenses:
|
99
99
|
- MIT
|
100
100
|
metadata:
|
101
|
-
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@0.5.
|
102
|
-
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@0.5.
|
101
|
+
source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_plugin_legacy@0.5.1/vite_plugin_legacy
|
102
|
+
changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_plugin_legacy@0.5.1/vite_plugin_legacy/CHANGELOG.md
|
103
103
|
post_install_message:
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|