8 lines
218 B
JavaScript
8 lines
218 B
JavaScript
import { writeSync } from 'node:fs';
|
|
|
|
|
|
export async function resolve(specifier, context, next) {
|
|
writeSync(1, context.foo + '\n'); // Expose actual value the hook was called with
|
|
return next(specifier, context);
|
|
}
|