Skip to content

Commit

Permalink
Fixed "buffer.push" issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Rochelle committed Mar 17, 2021
1 parent 870d456 commit 10bf097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (source, sourceMap)
let htmlExists = fs.existsSync(path.join(srcDirpath, elementName+'.'+templateExtension));
let cssExists = fs.existsSync(path.join(srcDirpath, elementName+'.'+styleExtension));

let buffer = (htmlExists || cssExists) ? ['\n/* inject from polymer-loader */\n'] : '';
let buffer = (htmlExists || cssExists) ? ['\n/* inject from polymer-loader */\n'] : [''];

buffer.push("(function() {");
buffer.push( "\tlet componentTemplate = \"\";");
Expand Down

0 comments on commit 10bf097

Please sign in to comment.