Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JamesLMilner opened this issue Jun 5, 2018 · 0 comments
Open

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

JamesLMilner opened this issue Jun 5, 2018 · 0 comments

Comments

@JamesLMilner
Copy link

JamesLMilner commented Jun 5, 2018

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';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant