1
0
Fork 0
mirror of synced 2024-09-21 11:53:49 +12:00
budibase/packages/server/src/jsRunner/bundles
2024-02-06 11:30:44 +01:00
..
index-helpers.ivm.bundle.js Clean 2024-02-06 10:42:44 +01:00
index-helpers.ts Clean 2024-02-06 10:42:44 +01:00
index.ts Add helpers in order to fix tests 2024-02-06 11:30:44 +01:00
README.md

Bundles for isolated-vm

Isolated-vm requires for us to have some libraries, such as string-templates helpers, built in a single file without external dependencies. These libraries are pretty much static. To avoid building this in every dev command, in every test command and in every pipeline, these libraries are already compiled and commited into the repo.

How are they consumed?

These libaries are compiled with a special extension: .ivm.bundle.js. This extension is configured in esbuild in order to not be bundled as javascript, and to be treated as a string instead. This will allow us to read it's context on runtime and inject it to isolated-vm.

How to update it?

These libraries are pretty much static, but they might require some updates from time to time when something changes on the source code. In order to do this, we just need to run the following command and commit the updated bundles:

yarn build:isolated-vm-libs