-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
architectureenhancementNew feature or requestNew feature or requestfiletypesNon-module filesNon-module files
Description
As discussed elsewhere, the following pattern is the only syntactically valid way to refer to external resources from JavaScript. As such, we should support this in order to allow npm modules to refer to non-JavaScript resources. I believe Webpack 5 has started supporting this too, so we're in good company.
const img = document.createElement('img');
img.src = new URL('./my-image.svg', import.meta.url);
document.body.appendChild(img);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
architectureenhancementNew feature or requestNew feature or requestfiletypesNon-module filesNon-module files