mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
479a50c7e9
PR-URL: https://github.com/nodejs/node/pull/49545 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me>
22 lines
461 B
JavaScript
22 lines
461 B
JavaScript
export function initialize() {
|
|
if (this != null) {
|
|
throw new Error('hook function must not be bound to loader instance');
|
|
}
|
|
}
|
|
|
|
export function resolve(url, _, next) {
|
|
if (this != null) {
|
|
throw new Error('hook function must not be bound to loader instance');
|
|
}
|
|
|
|
return next(url);
|
|
}
|
|
|
|
export function load(url, _, next) {
|
|
if (this != null) {
|
|
throw new Error('hook function must not be bound to loader instance');
|
|
}
|
|
|
|
return next(url);
|
|
}
|