Skip to content

Commit

Permalink
named params
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 13, 2022
1 parent f60506c commit d0e93ed
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -17,7 +17,8 @@ function containsPath(parent: string, child: string) {
export default async function transformSource(
this: any,
source: string,
...rest: any
map: any,
meta: any
) {
if (typeof source !== 'string') {
throw new Error('Expected source to have been transformed to a string.')
Expand Down Expand Up @@ -53,6 +54,6 @@ const { createProxy } = require("next/dist/build/webpack/loaders/next-flight-cli
module.exports = createProxy(${JSON.stringify(this.resourcePath)})
`
// Pass empty sourcemap
callback(null, output, ...rest)
callback(null, output, map, meta)
return
}

0 comments on commit d0e93ed

Please sign in to comment.