isomorfeus-asset-manager 0.14.11 → 0.14.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d50c569569e02ba08898b07c244ad40c2be45d190e98635383f53932391d725
|
4
|
+
data.tar.gz: 5c662d03177f4ab834d3667b34e44f20e485822a5474143be29171e63755c5d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c186995284e3e0bffddcf3aee7c7af958ba68af4d2f724c725d030a0098a9ebaa7c02e7fd5df43c61192e4784b78c6aa65e01ac372266dca0ed3ae3916da68b0
|
7
|
+
data.tar.gz: f92d390b1703c40b1141197dd0ee34445951139f4535bae6491e47d784045c60b673f42deeb21504a3f4de2c3c43bdbf324f9f30f4471a1c44bdada62d3a364d
|
@@ -33,7 +33,7 @@ module Isomorfeus
|
|
33
33
|
if Isomorfeus.assets.key?(asset_key)
|
34
34
|
asset = Isomorfeus.assets[asset_key]
|
35
35
|
if asset && asset.target != :node
|
36
|
-
asset_manager.transition(asset_key, asset)
|
36
|
+
asset_manager.transition(asset_key, asset) unless asset.bundled?
|
37
37
|
if asset.bundle_ruby_modules.key?(module_name)
|
38
38
|
headers = {}
|
39
39
|
headers['Last-Modified'] = asset.mtime
|
@@ -108,7 +108,7 @@ module Isomorfeus
|
|
108
108
|
asset.ruby_imports.each do |ruby_import|
|
109
109
|
module_name = ruby_import.module_name
|
110
110
|
out_file = File.join(@imports_path, module_name + '.rb.js')
|
111
|
-
next if
|
111
|
+
next if Isomorfeus.production? && File.exist?(out_file)
|
112
112
|
result = Opal::Builder.build(ruby_import.resolved_path, { esm: true })
|
113
113
|
rb[module_name] = { js: result.to_s }
|
114
114
|
if !Isomorfeus.production? && asset.target != :node
|
@@ -117,7 +117,7 @@ module Isomorfeus
|
|
117
117
|
else
|
118
118
|
FileUtils.mkdir_p(File.join(*[@imports_path].concat(module_name.split('/')[0...-1]))) if module_name.include?('/')
|
119
119
|
File.write(out_file, rb[module_name][:js])
|
120
|
-
rb[module_name][:js] = nil
|
120
|
+
rb[module_name][:js] = nil if Isomorfeus.production?
|
121
121
|
end
|
122
122
|
end
|
123
123
|
rb
|