dojo / dojo/meta

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

Open
#257 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
226
Forks
42
PR merge metrics
No merged PRs in 30d

Description

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:

```typescript
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:

```typescript
import bottomImage from './../images/placeholder.png';
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.