Mark it as external to exclude it from the bundle

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jpaquimcommented, Jan 14, 2022

Closing this issue for now, feel free to reopen if it becomes a problem again in the future.

0reactions
willpuckettcommented, Dec 16, 2021

Thanks that’s exactly what I needed!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found