Skip to main content

Compilation Configuration

There are a couple of relevant fields related to compilation if you are relying on a compiler to compile your node.

Open Node Protocol Architecture

Compiler

The compiler field informs the compiler how to compile your code. Valid values are:

  • js: If you wrote a vanilla Javascript or Typescript node, without any need of any framework specific compilation step.
  • js/react@19: If you are using React and require compilation of .jsx/tsx files.
  • js/vue@3: If you are using Vue and require compilation of .vue files.
  • js/svelte@5: If you are using Svelte and require compilation of .svelte files.
  • js/solidjs@1: If you are using Solid and require compilation of .jsx/tsx/solid.jsx/solid.tsx files.

Dependencies

The dependencies field is akin to your package.json file. It states the specific version that you need for your external NPM imports. When not defined, the latest package version will be used.

Example

src/main.ts
import axios from 'axios'; 
import chart from 'chartsjs/auto';
manifest.yml
name: ...
dependencies:
- axios@1.6.7
- chartsjs@12.4.2