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' }