From 3eb1a481111d4fa04d1c4501e4e36ef692d24ff4 Mon Sep 17 00:00:00 2001 From: xia0hj <719887163@qq.com> Date: Wed, 29 Nov 2023 21:25:41 +0800 Subject: [PATCH 1/2] fix: enable tsup sourcemap --- tsup.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tsup.config.ts b/tsup.config.ts index 747332d..4c09343 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -10,4 +10,5 @@ export default defineConfig({ external: [ 'vscode', ], + sourcemap: true, }) From 81889cebaedc37979c4aa2bf2b296bdb677300cc Mon Sep 17 00:00:00 2001 From: xia0hj <719887163@qq.com> Date: Thu, 30 Nov 2023 20:59:55 +0800 Subject: [PATCH 2/2] add sourcemap flag to dev script --- package.json | 2 +- tsup.config.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e91045..09e2d7d 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ ], "scripts": { "build": "tsup src/index.ts --external vscode", - "dev": "nr build --watch", + "dev": "nr build --watch --sourcemap", "lint": "eslint .", "vscode:prepublish": "nr build", "publish": "vsce publish --no-dependencies", diff --git a/tsup.config.ts b/tsup.config.ts index 4c09343..747332d 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -10,5 +10,4 @@ export default defineConfig({ external: [ 'vscode', ], - sourcemap: true, })