x9._ref is an internal function and exposed experimentally. We document it here because it might come in handy in some cases.

Overview

There are many ways of “importing” code in the JS/TS world. You have different flavors of require() and import. You can import asynchronously, or synchronously.

Under the hood, lamdbragon compiles most imports (and the resulting symbols) to an x9._ref expression.

Let’s look as an example

import { foo } from "src/bar/baz"
// is equivalent to
const foo = x9._ref("src/bar/baz#foo")

This might remind you of the require()

// ...