From f7c16f632b0733d864e1bba1c81a2f980492e01a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 6 Feb 2024 10:05:17 +0100 Subject: [PATCH] Bundle via esbuild --- packages/server/src/jsRunner/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/server/src/jsRunner/index.ts b/packages/server/src/jsRunner/index.ts index ebf90257d1..e5d95cf200 100644 --- a/packages/server/src/jsRunner/index.ts +++ b/packages/server/src/jsRunner/index.ts @@ -3,15 +3,11 @@ import env from "../environment" import { setJSRunner, JsErrorTimeout } from "@budibase/string-templates" import { context } from "@budibase/backend-core" import tracer from "dd-trace" -import fs from "fs" import url from "url" import crypto from "crypto" import querystring from "querystring" -const helpersSource = fs.readFileSync( - `${require.resolve("@budibase/string-templates/index-helpers")}`, - "utf8" -) +const helpersSource = require("./bundles/index-helpers.ivm.bundle.js.txt") class ExecutionTimeoutError extends Error { constructor(message: string) {