Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
19 lines
641 B
Plaintext
19 lines
641 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.create = create;
|
|
// ./pkg/orchestrion_js.js has a side effect of loading the wasm binary.
|
|
// We only want that if the library is actually used!
|
|
var cachedCreate;
|
|
/**
|
|
* Create a new instrumentation matcher from an array of instrumentation configs.
|
|
*/
|
|
function create(configs, dc_module) {
|
|
if (!cachedCreate) {
|
|
cachedCreate = require('./pkg/orchestrion_js.js').create;
|
|
}
|
|
if (cachedCreate === undefined) {
|
|
throw new Error("Failed to load '@apm-js-collab/code-transformer'");
|
|
}
|
|
return cachedCreate(configs, dc_module);
|
|
}
|