-
Notifications
You must be signed in to change notification settings - Fork 150
Way to disable External Resource lookup for script & link tags #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @btakita 👋 Sorry for the delay and thanks for the report! Fixed in |
hi @kaisermann — would it be possible to disable external files altogether? I have an SSR component that needs to render a script tag like this:
I don't want svelte-preprocess to try to import |
Hey @plmrry 👋 currently, there's no straightforward way to disable the external file lookup. Is your In theory, if |
@kaisermann The problem is, it does exist, but as an unbundled file, but I want to render a script tag that will point to the bundled file. Will try to make a minimal demo when I get the chance... I can get around it by doing this, just a bit hacky
There's also this case (which isn't covered by the previous PR fix):
(Although I guess as you pointed out, in this case it would just not find the file and emit a warning) |
I'm attempting to add svelte-preprocess to my rollup.config build. I have been using svelte components to dynamically load external script & link tags.
When running the build, I get the error:
It seems like svelte-preprocess is attempting to look for an External Reference. Is there a way to disable this check for some script & link tags?
I do have a workaround atm...
The text was updated successfully, but these errors were encountered: