NOTE: ECMAScript instrumentation is experimental and Contrast requires at least Node version 14.15.0 for support.
ECMAScript modules are the new official standard format to package JavaScript
code for reuse. ES Modules are loaded with the import module from 'module'
syntax.
When instrumenting an application that utilizes ECMAScript Modules, use the
following method to start the application. This is the appropriate method for
instrumenting an application that uses CJS, ESM, or a combination of both.
Usage: node --experimental-loader @contrast/protect/lib/esm-loader.mjs app-main.mjs -- [app arguments]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --configFile <path> path to agent config file