build: add sourceMaps and inlineSourcesContent option to swc (#6234)

This commit is contained in:
EYHN
2024-03-20 16:33:15 +00:00
parent 39cde560d1
commit 3edf32b1df
2 changed files with 9 additions and 7 deletions

View File

@@ -251,7 +251,7 @@ export const createConfiguration: (
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: require.resolve('swc-loader'),
loader: 'swc-loader',
options: {
// https://swc.rs/docs/configuring-swc/
jsc: {
@@ -277,6 +277,8 @@ export const createConfiguration: (
useDefineForClassFields: false,
},
},
sourceMaps: true,
inlineSourcesContent: true,
},
},
{