Skip to content

Commit f23b7ef

Browse files
authored
fix: Revert "use createRequire to load hook.js (#205)" (#208)
1 parent f67ecb8 commit f23b7ef

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

hook.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
//
33
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021 Datadog, Inc.
44

5-
import { createRequire } from 'node:module'
6-
const require = createRequire(import.meta.url)
7-
const { createHook } = require('./hook.js')
5+
import { createHook } from './hook.js'
86

97
const { initialize, load, resolve, getFormat, getSource } = createHook(import.meta)
108

test/fixtures/double-loader.mjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/other/double-loading.mjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)