Skip to content

$define

Adds a require package to the $jsEval code.

Parameters

NameDescriptionEnforcedDefault Value
Require NameHow must this package be required.YesNone
PropertyProperty to be required from the package. Use %default% to use the default CJS import: const package = require(“package”)No%DEFAULT%

Example

$define[requireName;property?]

Function Aliases

  • $addPackage