Skip to content

Commit dd44d55

Browse files
committed
chore: update webpack swcLoader snapshot
1 parent 77b6e4e commit dd44d55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

development/webpack/test/loaders.swcLoader.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('swcLoader', () => {
121121
assert.deepStrictEqual(loader.options.jsc.parser, {
122122
syntax,
123123
[syntax === 'typescript' ? 'tsx' : 'jsx']: enableJsx,
124-
importAttributes: true,
124+
importAssertions: true,
125125
});
126126
assert.deepStrictEqual(loader.options.jsc.transform.react, {
127127
development: isDevelopment,

development/webpack/utils/loaders/swcLoader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ export function getSwcLoader(
237237
syntax,
238238
[syntax === 'typescript' ? 'tsx' : 'jsx']: enableJsx,
239239
importAssertions: true,
240+
importAttributes: true,
240241
},
241242
experimental: {
242243
keepImportAttributes: true,
243244
emitAssertForImportAttributes: true,
244-
importAttributes: true,
245245
},
246246
},
247247
} as const satisfies SwcLoaderOptions,

0 commit comments

Comments
 (0)