babel-plugin-htmlbars-inline-precompile
Advanced tools
Comparing version 5.2.2 to 5.3.0
@@ -0,1 +1,14 @@ | ||
## v5.3.0 (2021-04-12) | ||
#### :rocket: Enhancement | ||
* [#370](https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile/pull/370) Allow passing getTemplateLocals function directly as an option ([@NullVoxPopuli](https://github.com/NullVoxPopuli)) | ||
#### :house: Internal | ||
* [#378](https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile/pull/378) Add test for reusing an import. ([@rwjblue](https://github.com/rwjblue)) | ||
#### Committers: 2 | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
- [@NullVoxPopuli](https://github.com/NullVoxPopuli) | ||
## v5.2.2 (2021-04-01) | ||
@@ -2,0 +15,0 @@ |
@@ -92,4 +92,12 @@ "use strict"; | ||
*/ | ||
function preprocessEmbeddedTemplates(template, { getTemplateLocalsRequirePath, getTemplateLocalsExportPath, importPath, importIdentifier, templateTag, templateTagReplacement, includeSourceMaps, includeTemplateTokens, relativePath, }) { | ||
const getTemplateLocals = loadGetTemplateLocals(getTemplateLocalsRequirePath, getTemplateLocalsExportPath); | ||
function preprocessEmbeddedTemplates(template, options) { | ||
let getTemplateLocals; | ||
const { importPath, templateTag, templateTagReplacement, includeSourceMaps, includeTemplateTokens, relativePath, } = options; | ||
let { importIdentifier } = options; | ||
if ('getTemplateLocals' in options) { | ||
getTemplateLocals = options.getTemplateLocals; | ||
} | ||
else { | ||
getTemplateLocals = loadGetTemplateLocals(options.getTemplateLocalsRequirePath, options.getTemplateLocalsExportPath); | ||
} | ||
if (importPath && importIdentifier) { | ||
@@ -132,2 +140,2 @@ importIdentifier = findImportedName(template, importPath, importIdentifier); | ||
exports.default = preprocessEmbeddedTemplates; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlcHJvY2Vzcy1lbWJlZGRlZC10ZW1wbGF0ZXMuanMiLCJzb3VyY2VSb290IjoiIi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uZXJhdGVNYXAoe1xuICAgICAgZmlsZTogYCR7ZGlyfS8ke25hbWV9LmpzYCxcbiAgICAgIHNvdXJjZTogcmVsYXRpdmVQYXRoLFxuICAgICAgaW5jbHVkZUNvbnRlbnQ6IHRydWUsXG4gICAgICBoaXJlczogdHJ1ZSxcbiAgICB9KTtcblxuICAgIG91dHB1dCArPSBgXFxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9JHttYXAudG9VcmwoKX1gO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICBvdXRwdXQsXG4gICAgcmVwbGFjZW1lbnRzLFxuICB9O1xufVxuIl19 |
{ | ||
"name": "babel-plugin-htmlbars-inline-precompile", | ||
"version": "5.2.2", | ||
"version": "5.3.0", | ||
"description": "Babel plugin to replace tagged template strings with precompiled HTMLBars templates", | ||
@@ -41,4 +41,4 @@ "repository": "https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile", | ||
"@types/string.prototype.matchall": "^4.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.20.0", | ||
"@typescript-eslint/eslint-plugin": "^4.21.0", | ||
"@typescript-eslint/parser": "^4.21.0", | ||
"common-tags": "^1.8.0", | ||
@@ -52,3 +52,3 @@ "ember-source": "^3.26.1", | ||
"prettier": "^2.2.1", | ||
"release-it": "^14.5.0", | ||
"release-it": "^14.5.1", | ||
"release-it-lerna-changelog": "^3.1.0", | ||
@@ -55,0 +55,0 @@ "typescript": "^4.2.3" |
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
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
98640
991