I have a file where i defined the absolute path of directory.
Ex : script=/absolutepath/scripts
utility=/absolutepath/utility
I want to use "script"/"utility" instead of absolute path in other javascript files.How i can do this.
What i want :
import random from "script/random.js"
instead of
import random from "/absolutepath/scripts/random.js"
PS :I am using k6 load generating framework which doesn't support node modules.