Skip to content

Commit

Permalink
fix: replace entire template string with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed May 14, 2020
1 parent 095429b commit b22dd38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Expand Up @@ -98,8 +98,8 @@ Alloy.createController('index');`;
function internalsLoader(content) {
if (this.resourcePath.endsWith('Alloy/template/lib/alloy.js')) {
content = patchRequires(content);
// replace version template variable with constant
content = content.replace('<%= version %>', 'ALLOY_VERSION');
// replace version template string with constant
content = content.replace('\'<%= version %>\'', 'ALLOY_VERSION');
} else if (this.resourcePath.endsWith('Alloy/lib/alloy/widget.js')) {
content = patchRequires(content);
}
Expand Down

0 comments on commit b22dd38

Please sign in to comment.