mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 19:53:48 +08:00
build: add sourceMaps and inlineSourcesContent option to swc (#6234)
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
/* eslint-disable simple-import-sort/imports */
|
/* eslint-disable simple-import-sort/imports */
|
||||||
// Auto generated, do not edit manually
|
// Auto generated, do not edit manually
|
||||||
import json_0 from './onboarding/info.json';
|
import json_0 from './onboarding/W-d9_llZ6rE-qoTiHKTk4.snapshot.json';
|
||||||
import json_1 from './onboarding/blob.json';
|
import json_1 from './onboarding/info.json';
|
||||||
import json_2 from './onboarding/W-d9_llZ6rE-qoTiHKTk4.snapshot.json';
|
import json_2 from './onboarding/blob.json';
|
||||||
|
|
||||||
export const onboarding = {
|
export const onboarding = {
|
||||||
'info.json': json_0,
|
'W-d9_llZ6rE-qoTiHKTk4.snapshot.json': json_0,
|
||||||
'blob.json': json_1,
|
'info.json': json_1,
|
||||||
'W-d9_llZ6rE-qoTiHKTk4.snapshot.json': json_2
|
'blob.json': json_2
|
||||||
}
|
}
|
||||||
@@ -251,7 +251,7 @@ export const createConfiguration: (
|
|||||||
{
|
{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
loader: require.resolve('swc-loader'),
|
loader: 'swc-loader',
|
||||||
options: {
|
options: {
|
||||||
// https://swc.rs/docs/configuring-swc/
|
// https://swc.rs/docs/configuring-swc/
|
||||||
jsc: {
|
jsc: {
|
||||||
@@ -277,6 +277,8 @@ export const createConfiguration: (
|
|||||||
useDefineForClassFields: false,
|
useDefineForClassFields: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
sourceMaps: true,
|
||||||
|
inlineSourcesContent: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user