ember-templates-loader
Advanced tools
Comparing version 1.12.1 to 1.13.0
11
index.js
@@ -1,6 +0,13 @@ | ||
var precompile = require('./ember-template-compiler').precompile; | ||
module.exports = function(source) { | ||
var options = this.options.emberTemplatesLoader || {}; | ||
var precompile = options.precompile; | ||
if (!precompile) { | ||
precompile = require(options.compiler || './ember-template-compiler').precompile; | ||
} | ||
this.cacheable && this.cacheable(); | ||
return 'module.exports = Ember.HTMLBars.template(' + precompile(source) + ');'; | ||
} | ||
}; | ||
module.exports.seperable = true; |
{ | ||
"name": "ember-templates-loader", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"description": "Load templates into Ember with webpack.", | ||
@@ -25,3 +25,3 @@ "main": "index.js", | ||
"napa": { | ||
"ember": "components/ember#1.12.0" | ||
"ember": "components/ember#1.13.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
@@ -25,2 +25,8 @@ # ember-templates-loader | ||
] | ||
}, | ||
emberTemplatesLoader: { | ||
// Where to require the compiler from, defaults to an internal compiler. | ||
compiler: 'ember/ember-template-compiler', | ||
// OR: Pass in the precompiler directly... | ||
// precompile: require('ember/ember-template-compiler').precompile, | ||
} | ||
@@ -27,0 +33,0 @@ }; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
679612
18654
57
1
1