rsnext/packages/next/build/webpack/loaders/next-middleware-ssr-loader/utils.ts

9 lines
242 B
TypeScript
Raw Normal View History

import loaderUtils from 'next/dist/compiled/loader-utils'
export function getStringifiedAbsolutePath(target: any, path: string) {
return loaderUtils.stringifyRequest(
target,
target.utils.absolutify(target.rootContext, path)
)
}