Skip to content

files such as images don't work with ESM style imports #257

@JamesLMilner

Description

@JamesLMilner

At the moment to import images in Dojo you have to use require.

For example say we want to use an image in a widget, we must do it like so:

const bottomImage = require('./../images/placeholder.png') 

It would be consistent and idomatic to be able to do image imports as we do with modules like this:

import bottomImage from './../images/placeholder.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