Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom helpers written in ES6 not fully compiled to ES5 #180

Open
scssyworks opened this issue Mar 2, 2019 · 0 comments
Open

Custom helpers written in ES6 not fully compiled to ES5 #180

scssyworks opened this issue Mar 2, 2019 · 0 comments

Comments

@scssyworks
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant