Skip to content

Commit a73ec12

Browse files
committed
Fix swc opts
1 parent 0911227 commit a73ec12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/next/src/build/webpack/plugins/image-loaderfile-plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class ImageLoaderFilePlugin {
3131
const source = readFileSync(loaderFile, 'utf8')
3232

3333
const swcOpts = getBaseSWCOptions({
34-
filename: srcPath,
34+
filename: loaderFile,
3535
development: dev,
3636
hasReactRefresh: false,
3737
globalWindow: false,
@@ -40,6 +40,8 @@ export class ImageLoaderFilePlugin {
4040
jsConfig: {},
4141
})
4242

43+
console.log('swcOpts is', swcOpts)
44+
4345
const result = await transform(source, {
4446
...swcOpts,
4547
module: {

0 commit comments

Comments
 (0)