sprockets-bumble_d 1.1.0 → 2.0.0

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
  SHA1:
3
- metadata.gz: 1c28bf102b37d7cd1d004921a300e84e6e5c061f
4
- data.tar.gz: af0245aee73d77674416b5ea4e70154e7e726a87
3
+ metadata.gz: 563a1df484bc178ed52a362af4fbdebbd6d094ae
4
+ data.tar.gz: 5be4216200fe745c4110fd05918c3fa848e7d0dd
5
5
  SHA512:
6
- metadata.gz: def03f875401ec22cb73ef41579638cde4daf004cce6a62131d38b84273f50e3359750615aaf02c623e931d7b1ce7e8cdb205547f91069c993a296afd47f1b57
7
- data.tar.gz: 18392c5d1e31ff6cc2fc769228fa2ba9d9fb7142731ad7a70da6d1468f6f76b8212855d2888c4237252c1f26563a3f35719f879e22dde9ee9e8a50b9a3effa6b
6
+ metadata.gz: 28f32bb6fdc5b0e176f59417ed983396c70434e53123de567a87dc87ddc60ea86da8ac83cceb760b57dbf9d2c940fb7215acf263b30af2393b49dc2d3ae9e819
7
+ data.tar.gz: fa17ebed642439486b9aceaf841a5aa70c0cbb82ce8ba02a23f645704a33f950c1b1c549b6ff794ec04af01326df56afe23352d5b54f808ad39583b711f28530
@@ -10,8 +10,8 @@ module Sprockets
10
10
  @globals_map = {}.freeze
11
11
  @transform_to_umd = true
12
12
  @babel_options = {
13
- presets: ['es2015'],
14
- plugins: ['external-helpers']
13
+ presets: ['@babel/preset-env'],
14
+ plugins: ['@babel/plugin-external-helpers']
15
15
  }
16
16
  end
17
17
 
@@ -16,7 +16,7 @@ module Sprockets
16
16
 
17
17
  if bumble_d_config.transform_to_umd
18
18
  babel_plugins += [
19
- ['transform-es2015-modules-umd', {
19
+ ['@babel/plugin-transform-modules-umd', {
20
20
  exactGlobals: true,
21
21
  globals: bumble_d_config.globals_map
22
22
  }]
@@ -8,7 +8,7 @@ module Sprockets
8
8
  module BumbleD
9
9
  class Transformer
10
10
  class BabelBridge < Schmooze::Base
11
- dependencies babel: 'babel-core'
11
+ dependencies babel: '@babel/core'
12
12
 
13
13
  method :resolvePlugin, 'babel.resolvePlugin'
14
14
  method :resolvePreset, 'babel.resolvePreset'
@@ -53,7 +53,6 @@ module Sprockets
53
53
  options = {
54
54
  moduleIds: true,
55
55
  sourceRoot: input[:load_path],
56
- moduleRoot: nil,
57
56
  filename: input[:filename],
58
57
  filenameRelative: filename_relative,
59
58
  ast: false
@@ -61,7 +60,7 @@ module Sprockets
61
60
 
62
61
  if options[:moduleIds] && options[:moduleRoot]
63
62
  options[:moduleId] ||= File.join(options[:moduleRoot], input[:name])
64
- elsif options[:moduleIds]
63
+ elsif options[:moduleIds] && input[:name] && !input[:name].empty?
65
64
  options[:moduleId] ||= input[:name]
66
65
  end
67
66
 
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module BumbleD
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-bumble_d
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Macklin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-12 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties