Mark it as external to exclude it from the bundle
See original GitHub issueHi, I’m getting this error message when I’m trying to build. How do I mark a package as external? Thanks!
> Build failed with 1 error:
.svelte-kit/output/server/app.js:20:29: error: Could not resolve "@supabase/supabase-js"
(mark it as external to exclude it from the bundle)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
API - esbuild
You can mark a file or a package as external to exclude it from your build. Instead of being bundled, the import will...
Read more >How to exclude JS script from the bundle when building app ...
I tried pretty much everything in optimizeDeps.exclude config property, but Vite still tries to analyze and pre-bundle it. vite.config.ts
Read more >Esbuild - Serverless Framework: Plugins
You can use patterns , include and exclude to include extra files into your bundles. External Dependencies. Packages that are marked as external...
Read more >esbuild - an extremely fast JavaScript bundler and minifier
--bundle Bundle all dependencies into the output files --define:K=V Substitute K with V while parsing --external:M Exclude module M from the bundle ......
Read more >Could not resolve "phoenix_html" - Elixir Forum
js/app.js:23:7: error: Could not resolve “phoenix_html” (mark it as external to exclude it from the bundle) 23 │ import “phoenix_html”
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue for now, feel free to reopen if it becomes a problem again in the future.
Thanks that’s exactly what I needed!