-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Add more optimizeDeps for Cloudflare prebundling #15026
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
Changes from 2 commits
e7d96ef
c79ce80
d78400d
738f39c
5a7bf49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@astrojs/cloudflare': patch | ||
| --- | ||
|
|
||
| Add prebundling config for internal Astro modules | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -245,14 +245,27 @@ export default function createIntegration(args?: Options): AstroIntegration { | |
| 'astro > es-module-lexer', | ||
| 'astro > unstorage', | ||
| 'astro > neotraverse/modern', | ||
| 'astro/app', | ||
| 'astro/compiler-runtime', | ||
| ], | ||
| exclude: [ | ||
| 'unstorage/drivers/cloudflare-kv-binding', | ||
| 'astro:toolbar:internal', | ||
| 'virtual:astro:middleware', | ||
| 'virtual:astro:dev-css-all', | ||
|
||
| 'virtual:astro:manifest', | ||
| 'virtual:astro:adapter-config/client', | ||
| 'virtual:astro-cloudflare:config', | ||
| ], | ||
| }, | ||
| }; | ||
| } else if (environmentName === 'client') { | ||
| return { | ||
| optimizeDeps: { | ||
| include: ['astro/runtime/client/dev-toolbar/entrypoint.js'], | ||
| exclude: ['astro:toolbar:internal'], | ||
| }, | ||
| }; | ||
| } | ||
| }, | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.