From 7ef112f75597e6ed84976c84f210ac9a09f3f0a1 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 8 Feb 2024 08:23:28 +0100 Subject: [PATCH] chore: add node polyfills --- remix.config.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/remix.config.ts b/remix.config.ts index 00bc0e9..dc93ba7 100644 --- a/remix.config.ts +++ b/remix.config.ts @@ -4,4 +4,27 @@ export default { ignoredRouteFiles: ["**/.*"], serverDependenciesToBundle: ["mdx-bundler"], tailwind: true, + browserNodeBuiltinsPolyfill: { + modules: { + path: true, + fs: true, + vm: true, + util: true, + buffer: true, + string_decoder: true, + events: true, + os: true, + crypto: true, + http: true, + child_process: true, + https: true, + url: true, + net: true, + tls: true, + assert: true, + stream: true, + zlib: true, + punycode: true, + }, + }, } satisfies AppConfig;