Skip to content

Dynamic URLs in JS don't get rewritten (rootURL case) #134

@mehulkar

Description

@mehulkar
class Foo {
  imagePath = `${imageDir}/sample.png`;
}

This doesn't get rewritten with the asset rev. One use case for this is in an Ember app that specifies a rootURL. Because a JS declaration to a path doesn't handle rootURLs, we have to prefix them with ${ENV.rootURL}/assets/images/sample.png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions