-
-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
At the moment it is not possible to require binary data (eg. import logo from "../images/logo.png";)
Describe the solution you'd like
The solution is to mimic how fetch() handle this :
- fetch the resource
- use the right API to get the data as text or as binary (see https://developer.mozilla.org/en-US/docs/Web/API/Body)
Additional context
see discussion #60
** Note **
This implies a breaking changes for the API options.getFile() and type File
getFile() will continue to support a simple string as return value but the object form will be :
{ type, getContentData } instead of { type, content }
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request