Skip to content

Commit 206d0c2

Browse files
committed
chore: adds sourcemaps for swc register
1 parent 38b8423 commit 206d0c2

File tree

4 files changed

+1731
-1686
lines changed

4 files changed

+1731
-1686
lines changed

src/config/load.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const loadConfig = (logger?: pino.Logger): SanitizedConfig => {
1818
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
1919
// @ts-ignore
2020
swcRegister({
21+
sourceMaps: 'inline',
2122
jsc: {
2223
parser: {
2324
syntax: 'typescript',

test/dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ process.env.PAYLOAD_CONFIG_PATH = configPath;
2121
process.env.PAYLOAD_DROP_DATABASE = 'true';
2222

2323
swcRegister({
24-
sourceMaps: true,
24+
sourceMaps: 'inline',
2525
jsc: {
2626
parser: {
2727
syntax: 'typescript',

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
"node_modules",
4242
".eslintrc.js"
4343
]
44-
}
44+
}

0 commit comments

Comments
 (0)