mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
9 lines
322 B
JavaScript
9 lines
322 B
JavaScript
import { createRequire } 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 } = createRequire(new URL('./', import.meta.url))
|
|
|
|
// This is a normal require that should still be traced
|
|
import './dep.js'
|