From 4987fb0087064b84dcedd9e4460fe51c9023e6fa Mon Sep 17 00:00:00 2001 From: William Cory Date: Tue, 15 Oct 2024 11:48:33 -0700 Subject: [PATCH] :zap: Fix: Remove bun warning from base-bundler --- bundler-packages/base-bundler/src/getContractPath.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bundler-packages/base-bundler/src/getContractPath.js b/bundler-packages/base-bundler/src/getContractPath.js index f0d819729b..ec856c3a7f 100644 --- a/bundler-packages/base-bundler/src/getContractPath.js +++ b/bundler-packages/base-bundler/src/getContractPath.js @@ -16,12 +16,9 @@ export const getContractPath = (basePath) => { return contractPackage } catch (e) {} } - // @ts-expect-error checking for global existence of bun - const isBun = typeof Bun !== 'undefined' - if (isBun) { - return 'tevm/contract' - } - throw new Error( - `Could not find tevm/contract or @tevm/contract in ${basePath}!. Please install it with \`npm i @tevm/contract\` \`pnpm i @tevm/contract\` or \`yarn add tevm/contract\``, + console.warn( + `Could not find tevm/contract or @tevm/contract in ${basePath}!. Please install it with \`npm i @tevm/contract\` \`pnpm i @tevm/contract\` or \`yarn add tevm/contract\` +Falling back to attempting tevm/contract`, ) + return 'tevm/contract' }