import-in-the-middle
Version:
Intercept imports in Node.js
10 lines (6 loc) • 420 B
JavaScript
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2.0 License.
//
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
import { createHook } from './create-hook.mjs'
const { initialize, load, resolve, getFormat, getSource } = createHook(import.meta)
export { initialize, load, resolve, getFormat, getSource }