Allows URLs to be imported as file:// URLs. Currently we get an absolute path in the file system when the file is above the limit. In some cases (f.e. NW.js or Electron) it would be simple if the path included file:// so that it works fine with web APIs out of the box.
F.e., instead of
import * as svgUrl from './some.svg'
<img src={"file://" + svgUrl} />
we could write
import * as svgUrl from './some.svg'
<img src={svgUrl} />
Feature Proposal
Maybe something like
Feature Use Case
Allows URLs to be imported as
file://
URLs. Currently we get an absolute path in the file system when the file is above the limit. In some cases (f.e. NW.js or Electron) it would be simple if the path includedfile://
so that it works fine with web APIs out of the box.F.e., instead of
we could write
which makes the code more portable.