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).

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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