-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I'm running into an issue where a remote URL that I don't want saved is being fetched despite saveRemote being false.
It looks like this might have been intentional, but I'm not sure I understand why.
Lines 22 to 31 in bc91b4f
| if (source.isRemote) { | |
| // node-fetch is esm-only, so support cjs via import() | |
| const fetch = (await import('node-fetch')).default; | |
| const res = await fetch(/** @type { string } */ (source.sourcepath)); | |
| if (!res.ok) { | |
| throw Error( | |
| res.status === 404 ? 'Not found' : `Fetch error: ${res.status}`, | |
| ); | |
| } |
In my case, this is causing the entire operation to error out because the URL isn't accessible from the build machine where I run inline-source.
Is there any way to change this?
Or at least not bail when the request fails?
Metadata
Metadata
Assignees
Labels
No labels