We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c69c8fb + 6f86813 commit 1aebd1bCopy full SHA for 1aebd1b
1 file changed
lib/utils.js
@@ -133,14 +133,14 @@ function getTemplateCompiler(templateCompilerPath, EmberENV = {}) {
133
let cacheData = TemplateCompilerCache.get(templateCompilerFullPath);
134
135
if (cacheData === undefined) {
136
- let templateCompilerContents = fs.readFileSync(templateCompilerFullPath, { encoding: 'utf-8' });
+ let templateCompilerContents = fs.readFileSync(templateCompilerFullPath);
137
let templateCompilerCacheKey = crypto
138
.createHash('md5')
139
.update(templateCompilerContents)
140
.digest('hex');
141
142
cacheData = {
143
- script: new vm.Script(templateCompilerContents, {
+ script: new vm.Script(templateCompilerContents.toString(), {
144
filename: templateCompilerPath,
145
}),
146
0 commit comments