handlebars-loader icon indicating copy to clipboard operation
handlebars-loader copied to clipboard

Custom helpers written in ES6 not fully compiled to ES5

Open scssyworks opened this issue 5 years ago • 0 comments

This is a bug report:

Issue

Custom helpers not fully compiled to ES5 when used with handlebars-loader

Example:

import Handlebars from 'handlebars';
export default function () {
  return new Handlebars.SafeString(`<div>JS template string</div>`);
}

Output:

In output file template string is not converted to normal string.

Expected:

Helpers should be properly transpiled.

scssyworks avatar Mar 02 '19 14:03 scssyworks