We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed65c77 commit 0bc155eCopy full SHA for 0bc155e
packages/adapter-cloudflare/index.js
@@ -53,6 +53,20 @@ export default function (options = {}) {
53
}
54
});
55
56
+ const nodeModules = [
57
+ 'node:assert',
58
+ 'node:async_hooks',
59
+ 'node:buffer',
60
+ 'node:crypto',
61
+ 'node:diagnostics_channel',
62
+ 'node:events',
63
+ 'node:path',
64
+ 'node:process',
65
+ 'node:stream',
66
+ 'node:string_decoder',
67
+ 'node:util'
68
+ ];
69
+
70
await esbuild.build({
71
platform: 'browser',
72
conditions: ['worker', 'browser'],
@@ -66,7 +80,7 @@ export default function (options = {}) {
80
loader: {
81
'.wasm': 'copy'
82
},
- external: ['cloudflare:*', 'node:*']
83
+ external: ['cloudflare:*', ...nodeModules]
84
85
86
};
0 commit comments