Skip to content

Closure filter fails on files, compiled with twig_js #28

Description

@apsavin

Way I define assets:

{% javascripts output="compiled/js/templates.js" filter="twig_js,closure"
    'views/blocks/templates/template.html.twig' %}
    <script src="{{ asset_url }}" crossorigin="anonymous"></script>
{% endjavascripts %}

Errors:

ERROR - required "twig" namespace never provided
goog.require('twig');
ERROR - required "twig.filter" namespace never provided
goog.require('twig.filter');

Possible solution:

remove goog.reqire from compiler results (remove lines 132 and 133 at ModuleCompiler).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions