Skip to content

Commit

Permalink
fix: mark cloudflare: packages as external (#10404)
Browse files Browse the repository at this point in the history
Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 27, 2023
1 parent a3b651d commit 2a10698
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-fans-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-cloudflare-workers': patch
---

fix: mark `cloudflare:` packages as external
5 changes: 5 additions & 0 deletions .changeset/friendly-dragons-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-cloudflare': patch
---

fix: mark `cloudflare:` packages as external
2 changes: 1 addition & 1 deletion packages/adapter-cloudflare-workers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ({ config = 'wrangler.toml' } = {}) {
entryPoints: [`${tmp}/entry.js`],
outfile: main,
bundle: true,
external: ['__STATIC_CONTENT_MANIFEST'],
external: ['__STATIC_CONTENT_MANIFEST', 'cloudflare:*'],
format: 'esm',
loader: {
'.wasm': 'copy'
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-cloudflare/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export default function (options = {}) {
bundle: true,
loader: {
'.wasm': 'copy'
}
},
external: ['cloudflare:*']
});
}
};
Expand Down

0 comments on commit 2a10698

Please sign in to comment.