Skip to content

Commit

Permalink
Update bundler instructions (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Jan 29, 2024
1 parent b6d0371 commit 225083f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/pages/getting-started/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ If you've installed `oslo`, add `oslo` to `vite.optimizeDeps.exclude`.

```ts
// astro.config.mjs
import { defineConfig } from "vite";

export default defineConfig({
// ...
optimizeDeps: {
exclude: ["oslo"]
vite: {
optimizeDeps: {
exclude: ["oslo"]
}
}
});
```
Expand Down
28 changes: 14 additions & 14 deletions docs/pages/upgrade-v3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,20 @@ Refer to these guides:

If you installed Oslo, you must prevent `oslo` from getting bundled. This is only required when using the `oslo/password` module.

### Astro

```ts
// astro.config.mjs
export default defineConfig({
// ...
vite: {
optimizeDeps: {
exclude: ["oslo"]
}
}
});
```

### Next.js

```ts
Expand All @@ -194,18 +208,4 @@ const nextConfig = {
};
```

### Vite

This is not required when using Nuxt, SolidStart, and SvelteKit. This is required for Astro and Remix (currently debugging the issue).

```ts
// astro.config.mjs
import { defineConfig } from "vite";

export default defineConfig({
// ...
optimizeDeps: {
exclude: ["oslo"]
}
});
```

0 comments on commit 225083f

Please sign in to comment.