ember-cli-babel
Advanced tools
Comparing version 4.0.0 to 4.1.0
21
index.js
@@ -0,8 +1,13 @@ | ||
var checker = require('ember-cli-version-checker'); | ||
module.exports = { | ||
name: 'ember-cli-babel', | ||
included: function(app) { | ||
this._super.included.apply(this, arguments); | ||
var options = getOptions(app.options['babel']); | ||
shouldSetupRegistryInIncluded: function() { | ||
return !checker.isAbove(this, '0.2.0'); | ||
}, | ||
setupPreprocessorRegistry: function(type, registry) { | ||
var options = getOptions(this.parent && this.parent.options && this.parent.options['babel']); | ||
var plugin = { | ||
@@ -16,3 +21,11 @@ name: 'ember-cli-babel', | ||
app.registry.add('js', plugin); | ||
registry.add('js', plugin); | ||
}, | ||
included: function(app) { | ||
this._super.included.apply(this, arguments); | ||
if (this.shouldSetupRegistryInIncluded()) { | ||
this.setupPreprocessorRegistry('parent', app.registry); | ||
} | ||
} | ||
@@ -19,0 +32,0 @@ }; |
{ | ||
"name": "ember-cli-babel", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"main": "index.js", | ||
@@ -20,4 +20,5 @@ "keywords": [ | ||
"broccoli-babel-transpiler": "^4.0.0", | ||
"broccoli-filter": "^0.1.10" | ||
"broccoli-filter": "^0.1.10", | ||
"ember-cli-version-checker": "^1.0.2" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4328
41
3
1
+ Addedember-cli-version-checker@1.3.1(transitive)
+ Addedsemver@5.7.2(transitive)