alchemy 2.0.0-beta.5 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alchemy",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
4
4
  "homepage": "https://alchemy.run",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Sam Goodwin <sam@alchemy.run>",
@@ -1165,7 +1165,16 @@ export const WorkerProvider = () =>
1165
1165
  cloudflareRolldown({
1166
1166
  compatibilityDate:
1167
1167
  props.compatibility?.date ?? defaultCompatibilityDate,
1168
- compatibilityFlags: props.compatibility?.flags,
1168
+ compatibilityFlags: props.compatibility?.flags
1169
+ ? [
1170
+ ...props.compatibility.flags,
1171
+ ...(props.isExternal ? [] : ["nodejs_compat"]),
1172
+ ].filter(
1173
+ (value, index, self) => self.indexOf(value) === index,
1174
+ )
1175
+ : props.isExternal
1176
+ ? []
1177
+ : ["nodejs_compat"],
1169
1178
  }),
1170
1179
  plugins,
1171
1180
  ...(props.build?.metafile ? [Sonda({ open: false })] : []),