File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ function getTemplateCompiler(templateCompilerPath, EmberENV = {}) {
133133 let cacheData = TemplateCompilerCache . get ( templateCompilerFullPath ) ;
134134
135135 if ( cacheData === undefined ) {
136- let templateCompilerContents = fs . readFileSync ( templateCompilerFullPath , { encoding : 'utf-8' } ) ;
136+ let templateCompilerContents = fs . readFileSync ( templateCompilerFullPath ) ;
137137 let templateCompilerCacheKey = crypto
138138 . createHash ( 'md5' )
139139 . update ( templateCompilerContents )
140140 . digest ( 'hex' ) ;
141141
142142 cacheData = {
143- script : new vm . Script ( templateCompilerContents , {
143+ script : new vm . Script ( templateCompilerContents . toString ( ) , {
144144 filename : templateCompilerPath ,
145145 } ) ,
146146
You can’t perform that action at this time.
0 commit comments