Skip to content

Incorrect source map generated with Sprockets 4 #51

@GCorbel

Description

@GCorbel

In a project, I use Rails 5.2, Sprockets 4 and vuejs-rails 2.5.13. On Firefox, I have the warning "Section offsets must be ordered and non-overlapping." and source map isn't read by FF.

I was able to reproduce the issue with :

<%= require_asset 'dist/vue.js' %>

This seems to work :

<%= Rails.application.assets.find_asset('dist/vue.js').source.html_safe %>

Subquestion : Is it still useful to have the minified version of Vue ?

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