Remove false-positive warnings from Cloudflare's build (#6531)
This commit is contained in:
parent
637f9bc728
commit
4ddf348938
2 changed files with 10 additions and 0 deletions
7
.changeset/fair-emus-taste.md
Normal file
7
.changeset/fair-emus-taste.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@astrojs/cloudflare': patch
|
||||
---
|
||||
|
||||
Remove false-positive warnings from Cloudflare's build.
|
||||
|
||||
Cloudflare includes warnings when it bundles the already-built output from astro.build. Those warnings are mostly due to `"sideEffects": false` packages that are included in the Vite built output because they are marked as external. Rollup will remove unused imports from these packages but will not remove the actual import, causing the false-positive warning.
|
|
@ -107,6 +107,9 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
|||
banner: {
|
||||
js: SHIM,
|
||||
},
|
||||
logOverride: {
|
||||
'ignored-bare-import': 'silent'
|
||||
},
|
||||
});
|
||||
|
||||
// Rename to worker.js
|
||||
|
|
Loading…
Reference in a new issue