Skip to content

Using precompiled templates (AMD mode) with handlebars.runtime 1.1.1 #644

@ghost

Description

There are exist another problem with precompiled templates and new module / interop style.
handlebars.runtime.amd file exactly exports 'handlebars.runtime' module.
But precompiled templates references 'handlebars' module.
It 'causes that AMD loader (requirejs) returns undefined, 'cause 'handlebars' module not defined.
So it can be solved with two ways: adds ability to configure import name for handlebars runtime for precompiler.
Or as workaround - export exactly 'handlebars' from handlebars.runtime.amd. It allow normally reference this module via 'handlebars'.

Let me know if you need additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions