mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
9 lines
310 B
JavaScript
9 lines
310 B
JavaScript
import * as module from 'node:module'
|
|
|
|
// Destructuring pattern - should not crash, but won't be traced
|
|
// since we can't bind a single identifier to the createRequire result
|
|
const { resolve } = module.createRequire(import.meta.url)
|
|
|
|
// This is a normal require that should still be traced
|
|
require('./dep.js')
|