You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spago does not wrap the entirety of the bundler's API (esbuild for JS builds), so it's possible to pass arguments through to it. E.g. to exclude an NPM package from the bundle you can pass the `--external` flag to esbuild:
956
+
- either through the command line, with the `--bundler-args` flag, i.e. `--bundler-args "--external:better-sqlite3"`.
957
+
- or by adding it to the configuration file:
958
+
```yaml
959
+
package:
960
+
bundle:
961
+
extra_args:
962
+
- "--external:better-sqlite3"
955
963
### Enable source maps
956
964
957
965
When bundling, you can include `--source-maps` to generate a final source map for your bundle.
0 commit comments