node/test/fixtures/es-module-loaders/loader-load-next-modified.mjs
Jacob Smith 447635b440
test: refactor ESM tests to improve performance
PR-URL: https://github.com/nodejs/node/pull/43784
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-29 10:42:55 +02:00

12 lines
161 B
JavaScript

export async function load(url, context, next) {
const {
format,
source,
} = await next(url);
return {
format,
source: source + 1,
};
}