Closed FranckFreiburger closed 3 years ago
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";)
import logo from "../images/logo.png";
Describe the solution you'd like The solution is to mimic how fetch() handle this :
fetch()
Additional context see discussion https://github.com/FranckFreiburger/vue3-sfc-loader/discussions/60
Note This implies a breaking changes for the API options.getFile() and type File
options.getFile()
File
getFile() will continue to support a simple string as return value but the object form will be : { type, getContentData } instead of { type, content }
{ type, getContentData }
{ type, content }
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 :Additional context see discussion https://github.com/FranckFreiburger/vue3-sfc-loader/discussions/60
Note This implies a breaking changes for the API
options.getFile()
and typeFile
getFile() will continue to support a simple string as return value but the object form will be :
{ type, getContentData }
instead of{ type, content }