sprockets-babel-miniracer 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sprockets/babel.rb +7 -1
- data/lib/sprockets/babel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a08c41ec7b0d5db82692da74c15ee3b8d12fed6
|
4
|
+
data.tar.gz: a91cf61d9075c8213e73dc00badcecf146f36571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea2d9f246900e26da8b48f6bf449214344d5e63d4999d6a0bda08db20ff9b1c0aa1a5ca6ef320937474ece980b7f1622107f6c2f8b9ca9958884ccb3ed9bb851
|
7
|
+
data.tar.gz: e424e76613e15bc8d2d4ccf58a2dcf2f79a8f350b25131fd9b39bd789f47cd47f7c04e88901f313067f23ff245d46c5224d7d3b71d8736d41535223313c416c3
|
data/lib/sprockets/babel.rb
CHANGED
@@ -209,5 +209,11 @@ module Sprockets
|
|
209
209
|
end
|
210
210
|
end
|
211
211
|
|
212
|
-
|
212
|
+
# NOTE KI https://github.com/appjudo/skim/issues/55
|
213
|
+
if Sprockets.respond_to?(:register_engine)
|
214
|
+
register_engine '.es6', Babel::Template, mime_type: 'application/javascript', silence_deprecation: true
|
215
|
+
else
|
216
|
+
Sprockets.register_mime_type 'text/es6', extensions: ['.es6', '.mjs']
|
217
|
+
Sprockets.register_transformer 'text/es6', 'application/javascript', Babel::Template
|
218
|
+
end
|
213
219
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-babel-miniracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kari Ikonen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.5.1
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Sprockets 2.x plugin for BabelJS.
|